Groups | Blog | Home
all groups > c# > january 2004 >

c# : How to hide and unhide tabs



Peter
1/8/2004 10:06:27 PM
How do I hide and unhide Tabs in the TabControl at the runtime?


Peter

--=20
Thanks
-------------------
v-jetan NO[at]SPAM online.microsoft.com (
1/9/2004 7:29:34 AM

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.
v-jetan NO[at]SPAM online.microsoft.com (
1/9/2004 7:42:05 AM

Hi Peter,

Oh, I also found an article talks about this in MSDN magazine:
http://msdn.microsoft.com/msdnmag/issues/02/06/Basics/

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.
Peter
1/9/2004 7:57:19 AM
Thanks for your help,

I think I can work with that!


[quoted text, click to view]

AddThis Social Bookmark Button