System.Windows.Forms.WebBrowser: Method Members

The methods of System.Windows.Forms.WebBrowser are listed below. For a list of all members, see the WebBrowser Members list.

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

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.