webbrowser控件求助
用vs2005(vb语言)写一个程序,用webbrowsef可以访问到了网址,但是从主岩浆点一个链接,它会跳出到浏览器去显示,有没有办法让点了链接后所打开的内容也在webbrowser控件里显示呢?
把新链接的地址传回WebBrowser1
Dim strURL As String
Private Sub WebBrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Cancel = True
WebBrowser1.Navigate strURL
End Sub
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
strURL = Text
End Sub
Private Sub Command2_Click()
WebBrowser1.Navigate "http://www.
End Sub