How to hide individual tabs in a TabControl

Oct 12 2009 12:09 PM
Hi,

Working in C# 2008.  I have a TreeView and a TabControl on a split panel.  I have 8 TabPages on the TabControl.  I need to Hide/Show Tabs based on the the TreeView selection.  However, using the tabControl1.tabPages[0].Hide(); seems to do nothing, for any of the tabPages.  Any idea what I am missing?  Is there another/better way to do this?

Thanks,
Bruce

Answers (3)