Link to home
Start Free TrialLog in
Avatar of directred
directred

asked on

Tab Control Query - How do you hide a tabPage

How do you hide a tabPage within a tabcontrol?

There is no visible property in the tabPage properties .

What I want to do is, make a tabPage visible only when a certain parameter is selected.
 
 
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of inethog
inethog

I've run into this as well... and the solution that worked for me was to set it's PARENT property = Nothing.

That way, you still have the tabPage in memory, but it's not displayed ( and don't have to deal with
the logistics of creating/destroying said tabPage everytime that you want to use it ).

Cheers,

D.
In C#, the tabpage.Parent must be set to null, not Nothing.

It does work well.