De8struction
New member
- Joined
- Aug 16, 2011
- Messages
- 4
- Programming Experience
- 3-5
I have a tabbed webbrowser I want to add an event to it to make it so IE doesn't pop up when I click a link, with a normal webrowser that is easy but I guess I have to do a handler with the tabs being part of the browser and all. I have little experience with handlers...
Here is the code for the tabbed browser.
Here is the code for the tabbed browser.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim Browse As New WebBrowser
TabControl1.TabPages.Add(1, "Page" & i)
TabControl1.SelectTab(1 - 1)
Browse.Name = "wb"
Browse.Dock = DockStyle.Fill
TabControl1.SelectedTab.Controls.Add(Browse)
i = i + 1
End Sub
Private Sub TabControl1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabControl1.SelectedIndexChanged
Dim Browse As New WebBrowser
TabControl1.TabPages.Add(1, "Page" & i)
TabControl1.SelectTab(1 - 1)
Browse.Name = "wb"
Browse.Dock = DockStyle.Fill
TabControl1.SelectedTab.Controls.Add(Browse)
i = i + 1
End Sub
Last edited: