hiding tabpages

  • Thread starter Thread starter Turxoft
  • Start date Start date
T

Turxoft

I have a tabcontrol in my form. I want to hide the tabpages. I want the user
cant change the tabpages and do it by code.how can I?
 
Turxoft said:
I have a tabcontrol in my form. I want to hide the tabpages. I want
the user cant change the tabpages and do it by code.how can I?

You can't. Remove the tab from the tab control's tabs collection and
re-add it if you want to enable it.

Frans

--
 
Hi,

As Frans said you cannot do it, what may work is if you put some control
over the tabs, in this way a click will be handled by the upper control and
not by the tabcontrol

you could hide/show this controls at your convenience to enable/disable the
pages.

cheers,
 
Back
Top