Hi Everyone,
I'm working on a project in Visual C# that requires multiple tabs (similar to an internet browser). I was easy to implement the tabs, however Im unable to use the tab pages with a text box.
The textbox is textBox1 and Ive got a lot of code connected to it, so I need this tectBox1 to be initialize every time that I open a new tab.
The code for the button for the new tab that i have is this:
TabPage newPage = new TabPage("New Page");
tabControl1.TabPages.Add(newPage);
this.tabPage1.Controls.Add(textBox1);
This makes a new tab appear with the text box, but it "steals" the text box from the previous tab (leaving that tab page empty).
Any ideas would be great!
Drue