それが私のコードです:
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)
どうすれば解決できますか?