Hiding TabPages

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
 
P

Peter Koen

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.
 

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