Add
Code:
Dim newTab As New TabPage
Dim web As New WebBrowser
right under your "Public Form1"
This adds a new tab with a web browser in it:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim lasttab As Integer = TabControl1.TabCount
TabControl1.TabPages.Add(newTab)
TabControl1.TabPages(lasttab).Controls.Add(web)
newTab.Text = "This is a new tab"
web.Dock = DockStyle.Fill
End Sub
This removes it
Code:
Dim lasttab As Integer = TabControl1.TabCount
TabControl1.TabPages.Remove(newTab)