Hi guys,
How I could get the controls of tab controls, here's a sample code
public void AddTabPage() {
tabCounter = tab.TabCount;
if (tabCounter == 0)
{
TabPage page = new TabPage("New Doc " + 1);
//CurrentTabPageName = "New Doc " + 1;
[U][U] RichTextBox txt = new RichTextBox();[/U][/U]
txt.Dock = DockStyle.Fill;
page.Controls.Add(txt);
tab.TabPages.Add(page);
tabCounter++;
}
else {
tabCounter++;
TabPage page = new TabPage("New Doc " + tabCounter);
// CurrentTabPageName = "New Doc " + tabCounter;
[U][U]RichTextBox txt = new RichTextBox();[/U][/U]
txt.Dock = DockStyle.Fill;
page.Controls.Add(txt);
tab.TabPages.Add(page);
}
}
here's I created richTextBox object on the runtime, how I could access this object from tabcontrol???