private void tbctrl1_Click(object sender, EventArgs e)
{
tbctrl1.Text = "This is Tab 1";
}but it continues to show a blank tab with no text for the name. Did I place the naming code in the wrong location? Or am I naming the tab the wrong way?
VulpesPosted Feb 17, 2013, 4:59 PM
richard smithPosted Feb 16, 2013, 10:39 PM
richard smithPosted Feb 16, 2013, 10:25 PM
If I attempt to use tbctrl1.TabPages[0].Text = "This is Tab 1"; I get a compile error of
'System.Windows.Forms.TabPage' does not contain a definition for 'TabPages' and no extension method 'TabPages'accepting a first argument of type 'System.Windows.Forms.TabPage'c ould be found.
VulpesPosted Feb 16, 2013, 7:12 PM
Alternatively, you can set it in code:
tbctrl1.TabPages[0].Text = "This is Tab 1";