How to hide and unhide tabs

  • Thread starter Thread starter Peter
  • Start date Start date
Hi Peter,

Thanks for posting in this group.
The Hide method on the tagpage will not take effect. I think you can only
get this done through remove the tabpage from the tabcontrol.
Like this:
private void button1_Click(object sender, System.EventArgs e)
{
tabControl1.TabPages.Remove(tabPage1);
}

private void button2_Click(object sender, System.EventArgs e)
{
tabControl1.TabPages.Add(tabPage1);
}

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top