System.Windows.Forms.WebBrowser.Navigated Event

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

Syntax

public event WebBrowserNavigatedEventHandler Navigated

Remarks

The System.Windows.Forms.WebBrowser control navigates to a new document whenever one of the following properties is set or methods is called:

Handle the WebBrowser.Navigated event to receive notification when the System.Windows.Forms.WebBrowser control has navigated to a new document. When the WebBrowser.Navigated event occurs, the new document has begun loading, which means you can access the loaded content through the WebBrowser.Document, WebBrowser.DocumentText, and WebBrowser.DocumentStream properties. Handle the WebBrowser.DocumentCompleted event to receive notification when the System.Windows.Forms.WebBrowser control finishes loading the new document.

You can also receive notification before navigation begins by handling the WebBrowser.Navigating event. Handling this event lets you cancel navigation if certain conditions have not been met, for example, the user has not completely filled out a form.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0