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?

VulpesRank #55 · 29.2K reputationPosted Feb 17, 2013, 11:59 AM EST
VulpesRank #55 · 29.2K reputationPosted Feb 16, 2013, 2:12 PM EST
Alternatively, you can set it in code:
tbctrl1.TabPages[0].Text = "This is Tab 1";
richard smithRank #8,268 · 225 reputationPosted Feb 16, 2013, 5:25 PM EST
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.
richard smithRank #8,268 · 225 reputationPosted Feb 16, 2013, 5:39 PM EST