那是我的代码:
Dim num as integer = 0
For Each s As String In ListBox1.Items
num = num + 1
Dim web(num) As WebBrowser
RefreshIESettings(s)
Web(num).Navigate("http://www.google.com") 'There's the error
wait("5000")
MsgBox(Web(num).Document.Title)
Next
只有当我这样做时,我才会收到此错误:
Dim webb As WebBrowser
RefreshIESettings(s)
Webb.Navigate("http://www.google.com") 'Here too
wait("5000")
MsgBox(Webb.Document.Title)
我该如何解决?