Something like this maybe:
to remove a Tab:
TabControl1.TabPages.Remove(myTabPage1)
to add the tab back:
TabControl1.TabPages.Add(myTabPage1)
myTabPage1 is the name in this case to a particular tabpage in the Tab Control Editor (not the text on the tab itself) that you
gave to the page from inside the editor (selected from the Tab Pages Collection Elipse ( .....)
The Remove line does not destroy the tabpage just hides it.
Hope this helps.
james
"RSH" <wa*************@yahoo.com> wrote in message news:eN**************@TK2MSFTNGP12.phx.gbl...
I am trying to upgrade an old VB 6 project to .Net. One of the things this application has is a series of 6 tabs in a
tabcontrol...BUT the tabs themselves arent visible when you run the application...instead the only way to go from one tab to
the next is programatically. I have looked through all the properties I can find to set the tabs themselves to invisible.
Please note: I'm not trying to hide the panel associated with the tab...just the physical tab itself.
Thanks,
RSH