Why would this not work? I get the new window to open yet it does not load. When I right click to veiw source it is empty.
It will load without this in IE.
The Address looks normal
http://v.XXX.com/XXX/nVia7OaEHd7UYlv4.html
Thank YouCode:Private Sub WebBrowser2_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser2.NewWindow Dim myElement As HtmlElement = WebBrowser1.Document.ActiveElement Dim target As String = myElement.GetAttribute("href") Dim newInstance As New Form5 newInstance.Show() newInstance.WebBrowser1.Navigate(target) 'cancel opening IE window e.Cancel = True End Sub




Reply With Quote