For the life of me, I can't get this to work.... What am I doing wrong?
Any help is greatly appreciated!!
Private Sub webBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
On Error Resume Next
If Progress = -1 Then ProgressBar1.Value = 100
lbl1.Text = "Done"
ProgressBar1.Visible = False
If Progress > 0 And ProgressMax > 0 Then
ProgressBar1.Visible = True
ProgressBar1.Value = Progress * 100 / ProgressMax
lbl1.Text = Int(Progress * 100 / ProgressMax) & "%"
End If
End Sub