Article ID: 162719
Article Last Modified on 7/13/2004
Control Name -------------- --------- Text Box Text1 Command Button Command1 WebBrowser WebBrowser1
Option Explicit
Private Sub Command1_Click()
If Text1.Text <> "" Then
WebBrowser1.Navigate Text1.Text
If WebBrowser1.Visible = False Then
WebBrowser1.Visible = True
End If
End If
End Sub
Private Sub Form_Load()
Me.Width = 5325
Me.Height = 5400
Me.Caption = "Mini browser"
With WebBrowser1
.Visible = False
.Width = 4575
.Height = 3375
.Top = 600
.Left = 240
End With
With Text1
.Top = 240
.Left = 1680
.Height = 285
.Width = 3135
.Text = "http://www.microsoft.com"
End With
With Command1
.Top = 120
.Left = 240
.Height = 375
.Width = 1215
.Caption = "Navigate"
.Default = True
End With
End Sub
155969 : How To Distribute the WebBrowser Control
Keywords: kbhowto kbcode KB162719