我已经在 VB 6.0 中制作了一个 Internet 浏览器,并且我已经给它一个进度条......当输入链接并单击“GO”后。进度条的按钮值开始增加,但当它完全填满时,错误来了。运行时错误“380”:无效的属性值。
Private Sub Command1_Click()
WebBrowser1.Navigate Text1.Text
End Sub
Private Sub Command2_Click()
WebBrowser1.GoBack
End Sub
Private Sub Command3_Click()
WebBrowser1.GoForward
End Sub
Private Sub menuchangetheme_Click()
CDB1.ShowColor
Form1.BackColor = CDB1.Color
End Sub
Private Sub menuexit_Click()
End
End Sub
Private Sub WebBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long)
ProgressBar1.Value = 0
If ProgressBar1.Value <> Val(ProgressBar1.Max) Then
ProgressBar1.Value = ProgressBar1.Value + Val(Progress)
ProgressBar1.Max = ProgressBar1.Value + 1
Else
ProgressBar1.Value = 0
End If
End Sub