title: TabControl winform c#
body: <p>Does anyone know why my tabcontrol will not display on this form? Have a feeling it maybe something simple but at the moment i just get a blank form.</p>
  
  <p>Thanks</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  
  namespace test_project_3
  {
      public partial class TabTest : Form
      {
          public TabTest()
          {
              InitializeComponent();
  
              WebBrowser WB = new WebBrowser();
              WB.Navigate("www.google.com");
  
              TabControl tc = new TabControl();
              tc.Dock = DockStyle.Fill;
              tc.Show();
  
              TabPage tp = new TabPage();
              tp.Text = "test";
              tp.Show();
              tp.Controls.Add(WB);
  
              tc.TabPages.Add(tp);
          }
      }
  }
  </code></pre>