Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TabSheets not invisible

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
I have 12 tab sheets on a screen in my program. This can get confusing when the user switches between basic and advanced settings, etc, and it grays out options... I need to make several tab sheets invisible, so i wrote:

TabSheet6->Visible = false;

Doing this made everything in the tabsheet dissappear, but not the sheet itself. I need the entire sheet gone, but it only seems to make the sheets contents invisible, not the sheet.
I tried TabSheet6->Hide();, but only came up with the same results, except it has some bug that displays off-the-wall data in the sheet.

All I want is the tabsheet itself hidden. Does anybody know how to do this??

Thanks, Cyprus
 
Try with TabVisible property of TabSheet.

Use TabVisible to temporarily remove a tab sheet from a page control. When TabVisible is false, the tab does not appear in the page control and its TabIndex property is -1. Setting TabVisible to true allows the user to see the tab of the tab sheet again.
 
Thanks alot, that was exactly what I was looking for. Cyprus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top