如何在webform中使用WebBrowser?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim wb As New SHDocVw.WebBrowser
Dim doc As mshtml.IHTMLDocument2
wb.Navigate("http://www.google.com")
doc = wb.Document
End Sub
我想通过WebBrowser取得mshtml.IHTMLDocument2,但是在执行wb.Navigate("http://www.google.com")这句话的时候出错“未指定的错误”,怎么解决呢?