How to: Navigate to a URL with the WebBrowser Control
The following code example demonstrates how to navigate the WebBrowser control to a specific URL.
To determine when the new document is fully loaded, handle the 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 WebBrowser control named
webBrowser1
.References to the
System
andSystem.Windows.Forms
assemblies.
See also
Sadarbojieties ar mums vietnē GitHub
Šī satura avotu var atrast vietnē GitHub, kur varat arī izveidot un pārskatīt problēmas un atgādāšanas pieprasījumus. Lai iegūtu papildinformāciju, skatiet mūsu līdzstrādnieku rokasgrāmatu.
.NET Desktop feedback
Atsauksmes
https://aka.ms/ContentUserFeedback.
Drīzumā: 2024. gada laikā mēs pakāpeniski pārtrauksim izmantot “GitHub problēmas” kā atsauksmju par saturu mehānismu un aizstāsim to ar jaunu atsauksmju sistēmu. Papildinformāciju skatiet:Iesniegt un skatīt atsauksmes par