Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/how-to-navigate-to-a-url-with-the-webbrowser-control.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.8 KiB

title, description, ms.date, dev_langs, f1_keywords, helpviewer_keywords, ms.assetid
title description ms.date dev_langs f1_keywords helpviewer_keywords ms.assetid
How to: Navigate to a URL with the WebBrowser Control 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. 03/30/2017
csharp
vb
WebBrowser.Navigate
WebBrowser control [Windows Forms], examples
URLs [Windows Forms], navigating to
WebBrowser control [Windows Forms], navigating to URLs
examples [Windows Forms], WebBrowser control
b3ec38cb-f509-4d0b-bd79-9f3611259c62

How to: Navigate to a URL with the WebBrowser Control

The following code example demonstrates how to navigate the xref:System.Windows.Forms.WebBrowser control to a specific URL.

To determine when the new document is fully loaded, handle the xref:System.Windows.Forms.WebBrowser.DocumentCompleted event. For a demonstration of this event, see How to: Print with a WebBrowser Control.

Example

Me.webBrowser1.Navigate("https://www.microsoft.com")
this.webBrowser1.Navigate("https://www.microsoft.com");

Compiling the Code

This example requires:

See also