Private Sub WebBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long) '设置进度条 If ProgressMax = 0 Then Exit Sub picprogress.Min = 0 picprogress.Max = ProgressMax If Progress = ProgressMax Or Progress <= 0 Then picprogress.Value = 0 Else picprogress.Value = Progress End IfEnd Sub
If ProgressMax = 0 Then Exit Sub
picprogress.Min = 0
picprogress.Max = ProgressMax
If Progress = ProgressMax Or Progress <= 0 Then
picprogress.Value = 0
Else
picprogress.Value = Progress
End IfEnd Sub
不知道你怎么用,我这里是好的。