TabControl

  • Thread starter Thread starter Jim
  • Start date Start date
No. It's not simple to hide tabs. Search in CodeProject.com ... i think
there are some articles with some explanation

Yeah I just realized that... I thought I had done that with tab
Controls but it must have been something else I was thinking of.

The way I've hidden/displayed tab controls is for each tab page, I
created a control that contained the data that was supposed to be in
them, then added and removed that tabe pages as needed... not the
greatest solution I think, but it works for now and will be probably
cleaned up later. The plus side is that I was able to re-use some of
those tab pages on other forms with tab controls, rather than re-
create them.
 
I case anyone is interested
Destroy Tab


Private MyHiddenPages As New ArrayList()
.......


Code

MyHiddenPages.Add(MyTab.TabPages(1))
MyTab.TabPages.RemoveAt(1)

Show DOES NOT WORK


MyTab.TabPages.Add(MyHiddenPages.Item(0))










On Wed, 7 Feb 2007 17:51:21 -0000, "Tiago Salgado" <Tiago
 
I case anyone is interested
Destroy Tab


Private MyHiddenPages As New ArrayList()
.......


Code

MyHiddenPages.Add(MyTab.TabPages(1))
MyTab.TabPages.RemoveAt(1)

Show

MyTab.TabPages.Add(MyHiddenPages.Item(0))










On Wed, 7 Feb 2007 17:51:21 -0000, "Tiago Salgado" <Tiago
 
Back
Top