WebBrowserNavigatingEventArgs::Url Property
Gets the location of the document to which the WebBrowser control is navigating.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Uri^A Uri representing the location of the document to which the WebBrowser control is navigating.
The following code example demonstrates how to use a handler for the WebBrowser::Navigating event to cancel navigation when a Web page form has not been filled in. The WebBrowser::Document property is used to determine whether the form input field contains a value. This example requires that your form contains a WebBrowser control called webBrowser1.
for accessing the current URL. Associated enumerations: NetworkAccess::Connect
Available since 2.0