title: How to Dynamically Create Tabs
body: <p>This is in C#</p>
  
  <p>I Need to basically make TabPages from a textbox.Text so for example:</p>
  
  <pre><code>textBox1.Text = "test";
  TabPage textBox1.Text = new TabPage();
  </code></pre>
  
  <p>That is what i want to do.. i know that won't work directly, but that should give you the idea of how i want to create the tabPages.. then i want to be able to call them later on too so for example:</p>
  
  <pre><code>String browser = "browser 1";
  (textBox1.Text as TabPage).Controls.Add(WebBrowser browser)
  </code></pre>
  
  <p>I need all the names to be dynamic because what this will be is a program that can run tests for customer accounts There would be a TabControl which has the "Account Number as the tabPage control name and then inside each of those tabPages would be another TabControl with a set up tabs with each invidivual test in it's own tab. So Tabs within Tabs basically.</p>