mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 07:56:06 +02:00
* 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
1.8 KiB
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 |
|
|
|
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:
-
A xref:System.Windows.Forms.WebBrowser control named
webBrowser1. -
References to the
SystemandSystem.Windows.Formsassemblies.
See also
- xref:System.Windows.Forms.WebBrowser
- xref:System.Windows.Forms.WebBrowser.DocumentCompleted?displayProperty=nameWithType
- xref:System.Windows.Forms.WebBrowser.Navigating?displayProperty=nameWithType
- xref:System.Windows.Forms.WebBrowser.Navigated?displayProperty=nameWithType
- WebBrowser Control
- How to: Print with a WebBrowser Control