title: How Do I Open a New Webbrowser Tab in Vb.net application
body: <p>I have a <code>Form1</code> with <code>button1</code> and a <code>webbrowser1</code>. When I click on <code>button1</code>, I want to open a new web browser tab in the same form, not in Firefox or Internet Explorer or Chrome. </p>
  
  <p>I tried using TabControl but am not sure how that works since it does not resize and its kind of annoying. I just want to open a new tab with web browser in the form. </p>
  
  <pre><code>Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
      Dim wb As New WebBrowser
      wb.Navigate("www.google.com")
      Dim tab As New TabPage("Title")
      tab.Controls.Add(wb)
      TabControl1.TabPages.Add(tab)
      TabControl1.SelectedTab = tab
      tab.Size = New System.Drawing.Size(280, 174)
    End Sub
  End Class
  </code></pre>