Results 1 to 14 of 14

Thread: [RESOLVED] VB 2012 Stop IE From Opening + New Tab (Tabbed Browser)

Threaded View

  1. #1
    New Member
    Join Date
    Aug 12
    Posts
    13

    Resolved [RESOLVED] VB 2012 Stop IE From Opening + New Tab (Tabbed Browser)

    Hey,

    So I have a tab control that opens new tabs once I click a button. Now the problems is that, when something opens in a new window, IE opens up. So I want it to; instead of opening in a new window, to open in a new tab (In my Browser) or at least in a new window of my browser.

    Here is the code to adding a new tab:
    Code:
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
            Dim Browser As New WebBrowser
            TabControl1.TabPages.Add("New Page")
            TabControl1.SelectTab(int)
            Browser.Name = "Web Browser"
            Browser.Dock = DockStyle.Fill
            TabControl1.SelectedTab.Controls.Add(Browser)
            AddHandler Browser.DocumentCompleted, AddressOf Done
            int = int + 1
            CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoHome()
        End Sub
    Thanks in advance
    Last edited by Paul Shane; Aug 20th, 2012 at 02:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •