|
|
Title | Navigate the WebBrowser control in VB .NET |
Keywords | WebBrowser, navigate, VB.NET |
Categories | Controls, VB.NET |
|
|
To add the WebBrowser control to your toolbox, open the Tools menu and select Add/Remove Toolbox Items. Select the COM Components tab, wait a long time for the tab to load, check the box next to Microsoft Web Browser, and click OK.
Now use the Toolbox to place a WebBrowser control on the form.
The following code shows how the example program uses the control's Navigate method to open a URL (or fully qualified file name).
|
|
Private Sub btnGo_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnGo.Click
AxWebBrowser1.Navigate(txtUrl.Text)
End Sub
|
|
|
|
|
|