Put on your form:
- CommandButton
- Timer
- Label and
- WebBrowser
... and try this:
VB Code:
Option Explicit
Private Sub Command1_Click()
WebBrowser1.Navigate "http://www.VBForums.com"
Timer1.Enabled = True
End Sub
Private Sub Form_Load()
With Timer1
.Enabled = False
.Interval = 50
End With
End Sub
Private Sub Timer1_Timer()
Static dots As Integer
dots = dots + 1
If dots <= 10 Then
Label1.Caption = "Downloading " & String(dots, ".")
Else
dots = 0
End If
End Sub
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Timer1.Enabled = False
Label1.Caption = "Download complete"
End Sub