hiding tabpages

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?
 
F

Frans Bouma [C# MVP]

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

--
 
I

Ignacio Machin \( .NET/ C# MVP \)

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top