Hiding tabs on a FormControl

R

RSH

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
 
J

james

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top