TabPage

  • Thread starter Thread starter Guest
  • Start date Start date
I think you must add and remove the tab from the pagecollection

tabControl1.TabPages.Remove(tabPage1);
 
Bharat:
How to disable tabs on a tabcontrol

If you want them hidden (which I suspect), you have to cover them up with a
panel or something. I used a cute "banner" graphic to cover the tabs and
leave only the client areas. My application is a database browser that
needs to switch forms from a TreeView on the left.

-- Bob
 
Bob Denny said:
Bharat:

If you want them hidden (which I suspect), you have to cover them up with a
panel or something. I used a cute "banner" graphic to cover the tabs and
leave only the client areas. My application is a database browser that
needs to switch forms from a TreeView on the left.

-- Bob

You can also *size* the tabs so that they are not visible....

In the Tab Control Properties, set;

Sizemode = 'Fixed' and
Appearance = 'Buttons' (important!)

All that's left is to set Itemsize Width = 0 and Height = 1.
I do this at runtime so that I still have the tabs showing
during development (can't set them both to 0...).

TabControl1.ItemSize = New System.Drawing.Size(0, 1)

Tada... No tabs!!

It took me a little playing to happen on this mix, but it works great!
I use a DevXpress XtraNavBar to control which tab page is visible,
probably similar to what you are doing with your tree view.
 
Back
Top