System.Windows.Forms.WebBrowserNavigatingEventArgs Class

Provides data for the WebBrowser.Navigating event.

See Also: WebBrowserNavigatingEventArgs Members

Syntax

public class WebBrowserNavigatingEventArgs : System.ComponentModel.CancelEventArgs

Remarks

The WebBrowser.Navigating event occurs before the System.Windows.Forms.WebBrowser control navigates to a new document. You can handle this event to cancel navigation before it begins if certain conditions have not been met, for example, when the user has not completely filled out a form. To do this, set the System.ComponentModel.CancelEventArgs.Cancel property of the System.Windows.Forms.WebBrowserNavigatingEventArgs object passed to the event handler to true. You can also use this object to retrieve the location of the new document through the WebBrowserNavigatingEventArgs.Url property. If the new document will be displayed in a Web page frame, you can retrieve the name of the frame through the WebBrowserNavigatingEventArgs.TargetFrameName property.

Requirements

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