System.Windows.Forms.WebBrowser Members

The members of System.Windows.Forms.WebBrowser are listed below.

See Also: Inherited members from System.Windows.Forms.WebBrowserBase

Public Constructors

Initializes a new instance of the System.Windows.Forms.WebBrowser class.

Public Properties

AllowNavigationbool.

Gets or sets a value indicating whether the control can navigate to another page after its initial page has been loaded.

AllowWebBrowserDropbool.

Gets or sets a value indicating whether the System.Windows.Forms.WebBrowser control navigates to documents that are dropped onto it.

[read-only]
CanGoBackbool.

Gets a value indicating whether a previous page in navigation history is available, which allows the WebBrowser.GoBack method to succeed.

[read-only]
CanGoForwardbool.

Gets a value indicating whether a subsequent page in navigation history is available, which allows the WebBrowser.GoForward method to succeed.

[read-only]
DocumentHtmlDocument.

Gets an System.Windows.Forms.HtmlDocument representing the Web page currently displayed in the System.Windows.Forms.WebBrowser control.

DocumentStreamSystem.IO.Stream.

Gets or sets a stream containing the contents of the Web page displayed in the System.Windows.Forms.WebBrowser control.

DocumentTextstring.

Gets or sets the HTML contents of the page displayed in the System.Windows.Forms.WebBrowser control.

[read-only]
DocumentTitlestring.

Gets the title of the document currently displayed in the System.Windows.Forms.WebBrowser control.

[read-only]
DocumentTypestring.

Gets the type of the document currently displayed in the System.Windows.Forms.WebBrowser control.

[read-only]
EncryptionLevelWebBrowserEncryptionLevel.

Gets a value indicating the encryption method used by the document currently displayed in the System.Windows.Forms.WebBrowser control.

[read-only]
override
Focusedbool.

Gets a value indicating whether the control or any of its child windows has input focus.

[read-only]
IsBusybool.

Gets a value indicating whether the System.Windows.Forms.WebBrowser control is currently loading a new document.

[read-only]
IsOfflinebool.

Gets a value indicating whether the System.Windows.Forms.WebBrowser control is in offline mode.

IsWebBrowserContextMenuEnabledbool.

Gets or a sets a value indicating whether the shortcut menu of the System.Windows.Forms.WebBrowser control is enabled.

ObjectForScriptingobject.

Gets or sets an object that can be accessed by scripting code that is contained within a Web page displayed in the System.Windows.Forms.WebBrowser control.

PaddingPadding.

This property is not meaningful for this control.

[read-only]
ReadyStateWebBrowserReadyState.

Gets a value indicating the current state of the System.Windows.Forms.WebBrowser control.

ScriptErrorsSuppressedbool.

Gets or sets a value indicating whether the System.Windows.Forms.WebBrowser displays dialog boxes such as script error messages.

ScrollBarsEnabledbool.

Gets or sets a value indicating whether scroll bars are displayed in the System.Windows.Forms.WebBrowser control.

[read-only]
StatusTextstring.

Gets the status text of the System.Windows.Forms.WebBrowser control.

UrlUri.

Gets or sets the URL of the current document.

[read-only]
VersionVersion.

Gets the version of Internet Explorer installed.

WebBrowserShortcutsEnabledbool.

Gets or sets a value indicating whether keyboard shortcuts are enabled within the System.Windows.Forms.WebBrowser control.

Protected Properties

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the default size of the control.

Public Methods

GoBack() : bool

Navigates the System.Windows.Forms.WebBrowser control to the previous page in the navigation history, if one is available.

GoForward() : bool

Navigates the System.Windows.Forms.WebBrowser control to the next page in the navigation history, if one is available.

GoHome()

Navigates the System.Windows.Forms.WebBrowser control to the home page of the current user.

GoSearch()

Navigates the System.Windows.Forms.WebBrowser control to the default search page of the current user.

Navigate(string)

Loads the document at the specified Uniform Resource Locator (URL) into the System.Windows.Forms.WebBrowser control, replacing the previous document.

Navigate(Uri)

Loads the document at the location indicated by the specified Uri into the System.Windows.Forms.WebBrowser control, replacing the previous document.

Navigate(string, bool)

Loads the document at the specified Uniform Resource Locator (URL) into a new browser window or into the System.Windows.Forms.WebBrowser control.

Navigate(string, string)

Loads the document at the specified Uniform Resource Locator (URL) into the System.Windows.Forms.WebBrowser control, replacing the contents of the Web page frame with the specified name.

Navigate(Uri, bool)

Loads the document at the location indicated by the specified Uri into a new browser window or into the System.Windows.Forms.WebBrowser control.

Navigate(Uri, string)

Loads the document at the location indicated by the specified Uri into the System.Windows.Forms.WebBrowser control, replacing the contents of the Web page frame with the specified name.

Navigate(string, string, byte[], string)

Loads the document at the specified Uniform Resource Locator (URL) into the System.Windows.Forms.WebBrowser control, requesting it using the specified HTTP data and replacing the contents of the Web page frame with the specified name.

Navigate(Uri, string, byte[], string)

Loads the document at the location indicated by the specified Uri into the System.Windows.Forms.WebBrowser control, requesting it using the specified HTTP data and replacing the contents of the Web page frame with the specified name.

Print()

Prints the document currently displayed in the System.Windows.Forms.WebBrowser control using the current print and page settings.

override
Refresh()

Reloads the document currently displayed in the System.Windows.Forms.WebBrowser control by checking the server for an updated version.

Refresh(WebBrowserRefreshOption)

Reloads the document currently displayed in the System.Windows.Forms.WebBrowser control using the specified refresh options.

ShowPageSetupDialog()

Opens the Internet Explorer Page Setup dialog box.

ShowPrintDialog()

Opens the Internet Explorer Print dialog box without setting header and footer values.

ShowPrintPreviewDialog()

Opens the Internet Explorer Print Preview dialog box.

ShowPropertiesDialog()

Opens the Internet Explorer Properties dialog box for the current document.

ShowSaveAsDialog()

Opens the Internet Explorer Save Web Page dialog box or the Save dialog box of the hosted document if it is not an HTML page.

Stop()

Cancels any pending navigation and stops any dynamic page elements, such as background sounds and animations.

Protected Methods

override
AttachInterfaces(object)

Called by the control when the underlying ActiveX control is created.

override
CreateSink()

Associates the underlying ActiveX control with a client that can handle control events.

override
CreateWebBrowserSiteBase() : WebBrowserSiteBase

Returns a reference to the unmanaged WebBrowser ActiveX control site, which you can extend to customize the managed System.Windows.Forms.WebBrowser control.

override
DetachInterfaces()

Called by the control when the underlying ActiveX control is discarded.

override
DetachSink()

Releases the event-handling client attached in the WebBrowser.CreateSink method from the underlying ActiveX control.

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.WebBrowser and optionally releases the managed resources.

OnCanGoBackChanged(EventArgs)

Raises the WebBrowser.CanGoBackChanged event.

OnCanGoForwardChanged(EventArgs)

Raises the WebBrowser.CanGoForwardChanged event.

OnDocumentCompleted(WebBrowserDocumentCompletedEventArgs)

Raises the WebBrowser.DocumentCompleted event.

OnDocumentTitleChanged(EventArgs)

Raises the WebBrowser.DocumentTitleChanged event.

OnEncryptionLevelChanged(EventArgs)

Raises the WebBrowser.EncryptionLevelChanged event.

OnFileDownload(EventArgs)

Raises the WebBrowser.FileDownload event.

OnNavigated(WebBrowserNavigatedEventArgs)

Raises the WebBrowser.Navigated event.

OnNavigating(WebBrowserNavigatingEventArgs)

Raises the WebBrowser.Navigating event.

OnNewWindow(System.ComponentModel.CancelEventArgs)

Raises the WebBrowser.NewWindow event.

OnProgressChanged(WebBrowserProgressChangedEventArgs)

Raises the WebBrowser.ProgressChanged event.

OnStatusTextChanged(EventArgs)

Raises the WebBrowser.StatusTextChanged event.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

CanGoBackChanged

Occurs when the WebBrowser.CanGoBack property value changes.

CanGoForwardChanged

Occurs when the WebBrowser.CanGoForward property value changes.

DocumentCompleted

Occurs when the System.Windows.Forms.WebBrowser control finishes loading a document.

DocumentTitleChanged

Occurs when the WebBrowser.DocumentTitle property value changes.

EncryptionLevelChanged

Occurs when the System.Windows.Forms.WebBrowser control navigates to or away from a Web site that uses encryption.

FileDownload

Occurs when the System.Windows.Forms.WebBrowser control downloads a file.

Navigated

Occurs when the System.Windows.Forms.WebBrowser control has navigated to a new document and has begun loading it.

Navigating

Occurs before the System.Windows.Forms.WebBrowser control navigates to a new document.

NewWindow

Occurs before a new browser window is opened.

PaddingChanged

Occurs when the value of the WebBrowser.Padding property changes.

ProgressChanged

Occurs when the System.Windows.Forms.WebBrowser control has updated information on the download progress of a document it is navigating to.

StatusTextChanged

Occurs when the WebBrowser.StatusText property value changes.