Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebBrowserNavigatingEventArgs::Url Property

 

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

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

public:
property Uri^ Url {
	Uri^ get();
}

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.

No code example is currently available or this language may not be supported.

WebPermission

for accessing the current URL. Associated enumerations: NetworkAccess::Connect

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft