How to make one TabPage of a TabControl invisible ?

P

Peter

Hi,

A TabControl may have several TabPages. I want to set one page to be
invisible.
So I called: TabPageX.Visible=false or TabPageX.Hide , but nothing happens.
Then I called TabPageX.Dispose,this time the page is invisible. But I can't
restore the tabpage any more.

Any response will be appreciated,

Peter
 
G

Guest

Hi,

In case you did not want to try the tab control Cor refered to. You
need to remove the tabpage from the tab control to hide it and add it back in
to show it.

Ken
 
M

Mick Doherty

Hi Ken,

Cor didn't refer to my TabControlEX, but my tabcontrol tips page, where
you'll find examples to show how to do a lot of things that are frequently
asked for, such as methods to hide and show tabpages.

Obviously, TabControlEX wraps up most of my tips and more, but some people
don't want to use third party controls (even free ones) when they can code
it themselves.
 

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