I need help Building my VB 2008 Express web browser
Every time I click on a link, it opens in Internet Explorer, but I want it to open in another window of my web browser.
More details: I created a tabbed web browser that uses a tab control. The other controls will be a regular web browser.
+1
Ancient fry up
source
to share
1 answer
You need to connect newwindow2 (old activex) browser control actions like this:
Private Sub AxWebBrowser1_NewWindow2(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_NewWindow2Event) Handles AxWebBrowser1.NewWindow2
Dim frmWB As Form1
frmWB = New Form1()
frmWB.AxWebBrowser1.RegisterAsBrowser = True
e.ppDisp = frmWB.AxWebBrowser1.Application
frmWB.Visible = True
End Sub
Details can be found here http://support.microsoft.com/?scid=kb%3Ben-us%3B311282&x=8&y=21
0
Daniel Kreiseder
source
to share