System.Windows.Forms.WebBrowser.Navigate Method

Loads the document at the location indicated by the specified Uri into the System.Windows.Forms.WebBrowser control, replacing the previous document.

Syntax

public void Navigate (Uri url)

Parameters

url
A Uri representing the URL of the document to load.

Remarks

The System.Windows.Forms.WebBrowser control maintains a history list of all the Web pages visited during a browsing session. When you call this overload, the System.Windows.Forms.WebBrowser control navigates to the specified URI and adds it to the end of the history list. Use the WebBrowser.GoBack method to return the control to a previous page in the navigation history. Use the WebBrowser.GoForward method to return to a later page in the navigation history after navigating backward.

The System.Windows.Forms.WebBrowser control stores Web pages from recently visited sites in a cache on the local hard disk. Each page can specify an expiration date indicating how long it will remain in the cache. When the control navigates to a page, it saves time by displaying a cached version, if one is available, rather than downloading the page again. Use the WebBrowser.Refresh method to force the System.Windows.Forms.WebBrowser control to reload the current page by downloading it, ensuring that the control displays the latest version.

You can use the erload:System.Windows.Forms.WebBrowser.Navigate method to implement an address bar similar to the one in Internet Explorer.

Requirements

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