_WebBrowserNavigatingEventArgs Type

Provides data for the OnNavigating event.

Namespace: CNClrLib.Control.WebBrowser
type
 _WebBrowserNavigatingEventArgs = CNClrLib.Windows._WebBrowserNavigatingEventArgs;

The TCnWebBrowser.OnNavigating event occurs before the TCnWebBrowser 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 Cancel property of the 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 Url property. If the new document will be displayed in a Web page frame, you can retrieve the name of the frame through the TargetFrameName property.

For more information, see WebBrowserNavigatingEventArgs in C#.

Properties
Description

Cancel

Gets or sets a value indicating whether the event should be canceled.

TargetFrameName

Gets the name of the Web page frame in which the new document will be loaded.

Url

Gets the location of the document to which the TCnWebBrowser control is navigating.