0
這是我的代碼的實例:對象引用未設置到對象
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)
我該如何解決呢?
就像提到@dotTutorials,我覺得你應該再看看[新運營商(HTTP:/ /msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k%28VB.NEW%29;k%28TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV4.0%22%29;k% 28DevLang-VB%29&rd = true)來自MSDN,也許是喲你應該做一些基本的教程。 – jacqijvv 2012-08-03 07:39:21