--- title: "How to: Navigate to a URL with the WebBrowser Control" description: Learn how to use the Windows Forms WebBrowser.Navigate control to navigate to a specific URL. Also learn how to determine when the new document is loaded. ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" f1_keywords: - "WebBrowser.Navigate" helpviewer_keywords: - "WebBrowser control [Windows Forms], examples" - "URLs [Windows Forms], navigating to" - "WebBrowser control [Windows Forms], navigating to URLs" - "examples [Windows Forms], WebBrowser control" ms.assetid: b3ec38cb-f509-4d0b-bd79-9f3611259c62 --- # How to: Navigate to a URL with the WebBrowser Control The following code example demonstrates how to navigate the control to a specific URL. To determine when the new document is fully loaded, handle the event. For a demonstration of this event, see [How to: Print with a WebBrowser Control](how-to-print-with-a-webbrowser-control.md). ## Example ```vb Me.webBrowser1.Navigate("https://www.microsoft.com") ``` ```csharp this.webBrowser1.Navigate("https://www.microsoft.com"); ``` ## Compiling the Code This example requires: - A control named `webBrowser1`. - References to the `System` and `System.Windows.Forms` assemblies. ## See also - - - - - [WebBrowser Control](webbrowser-control-windows-forms.md) - [How to: Print with a WebBrowser Control](how-to-print-with-a-webbrowser-control.md)