有沒有人有任何想法如何打開新窗口點擊任何動態鏈接,我的問題平臺是VB.NET,還記得新窗口不是Internet Explorer窗口或任何其他瀏覽器給我完整的源代碼。我如何打開新窗口點擊任何動態鏈接在vb.net
這是我試過至今
Private Sub WebBrowser1_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow
Dim thiselement As HtmlElement = WebBrowser1.Document.ActiveElement
Dim targeturl As String = thiselement.GetAttribute("href")
e.Cancel = True
Dim window As New Form1
window.Show()
window.WebBrowser1.Navigate(targeturl)
End Sub
你想打開新的瀏覽器窗口 ?? –
您發佈的密碼是否有錯誤 ?? –
[如何在新窗口窗體中打開動態WebBrowser鏈接地址的可能的重複?](http://stackoverflow.com/questions/19108562/how-to-open-dynamic-webbrowser-link-address-in-new-window -form) – nathanchere