How to make one TabPage of a TabControl invisible ?

  • Thread starter Thread starter Peter
  • Start date Start date
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
 
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
 
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.
 
Back
Top