Hiding TabPages

  • Thread starter Thread starter Paul Sampson
  • Start date Start date
P

Paul Sampson

Hi,

Does anyone know how to hide certain TabPages inside a TabControl in VS.NET
2003?

I've seen code to remove the tabpage but I want to show/hide based on the
user's access rights each time, rather than removing the tabpage.

There doesn't seem to be an Enabled or Visible property and setting Locked =
True doesn't seem to do anything either.

Microsoft: this is basic functionality!!!

Thanks in advance,
Paul
 
Hi,

Does anyone know how to hide certain TabPages inside a TabControl in
VS.NET 2003?

I've seen code to remove the tabpage but I want to show/hide based on
the user's access rights each time, rather than removing the tabpage.

There doesn't seem to be an Enabled or Visible property and setting
Locked = True doesn't seem to do anything either.

Microsoft: this is basic functionality!!!

Thanks in advance,
Paul

TabPage is derived from Panel so it has a Hide and Show Method. Afaik it's
just hidden in the intellisense for TabPage class and in the MSDN in the
all members page most of the inherited methods are not listed.
 
Back
Top