title: Adding buttons to a TabControl Tab in C#
body: <p>I have a TabControl in a windows form. I have pragmaticly added new tabs like so:</p>
  
  <pre><code>for (int i = 1; i &lt; numOfLanguages; i++)
  {
       // add a tab for each language
       string tabTitle = split[i];
       TabPage newTab = new TabPage(tabTitle);
       languageTabs.TabPages.Add(newTab);
  }
  </code></pre>
  
  <p>inside the loop I want to set up the other controlls for each tab. mainly I want to add buttons. I have seen this code:</p>
  
  <pre><code>tabPage1.Controls.Add(new Button());
  </code></pre>
  
  <p>Based off this example I want to do something similar like:</p>
  
  <pre><code>languageTabs.SelectTab(split[i]).Add(new Button());
  </code></pre>
  
  <p>I know that this code wont work. Have been looking through the params and cant see anything that lets me do this kind of thing.</p>
  
  <p>Any ideas community?</p>