C# help with getting stuff to populate

wobble_the_ugly

Solid State Member
Messages
17
Right I have this peace of code. I want it duplicate the textBox, and at the same time, I want them to appear on other tabs in a multidimensional array, I know there is a way of doing it, but I just dont have a bloody clue where to go it has had me perplexed most for over a week now. ANy help would be appreciated

private void button1_Click(object sender, EventArgs e)
{
string title = "Round " + (tabControl1.TabCount + 1).ToString();
TabPage myTabPage = new TabPage(title);
tabControl1.TabPages.Add(myTabPage);
tabControl1.SelectedIndex = tabControl1.TabCount;

textBox9.Parent = tabControl1.TabPages[tabControl1.SelectedIndex];
label9.Parent = tabControl1.TabPages[tabControl1.SelectedIndex];
}
 
Back
Top Bottom