我在 VB.Net 中收到以下错误。
“你调用的对象是空的”
Try
Dim myurl As String
myurl = "http://example.com/page.php?user=" & uzjer
WebBrowser1.Url = New Uri(myurl)
For Each ele As HtmlElement In WebBrowser1.Document.Links
Dim username As String
username = ele.GetAttribute("name")
MsgBox(username)
Next
Catch ex As Exception
MsgBox(ex.Message)
End Try