M
mat
Hi all,
If I have a main form with a TabControl and this method:
protected void NewTab()
{
TabPage newTab;
newTab = new TabPage();
newTab.BackColor = System.Drawing.SystemColors.Window;
newTab.Size = new System.Drawing.Size(498, 400);
RichTextBox richTextBox;
richTextBox = new PoccoRichTextBox();
newTab.Controls.Add(richTextBox);
tabControl.Controls.Add(newTab);
}
This adds a TabPage as I want, but then I find I am stuck not knowing
howto reference things.
How could I expand the above so that I can insert text into the textBox
and bring the tab to the front of the TabControl?
Your help would be great.
Mat
If I have a main form with a TabControl and this method:
protected void NewTab()
{
TabPage newTab;
newTab = new TabPage();
newTab.BackColor = System.Drawing.SystemColors.Window;
newTab.Size = new System.Drawing.Size(498, 400);
RichTextBox richTextBox;
richTextBox = new PoccoRichTextBox();
newTab.Controls.Add(richTextBox);
tabControl.Controls.Add(newTab);
}
This adds a TabPage as I want, but then I find I am stuck not knowing
howto reference things.
How could I expand the above so that I can insert text into the textBox
and bring the tab to the front of the TabControl?
Your help would be great.
Mat