Provides data for the WebBrowser.Navigating event.
See Also: WebBrowserNavigatingEventArgs Members
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.