Hiding TabPages  
Author Message
umwhat





PostPosted: Wed Oct 22 18:43:25 CDT 2003 Top

Visual C#.Net >> Hiding TabPages 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

DotNet351  
 
 
Peter





PostPosted: Wed Oct 22 18:43:25 CDT 2003 Top

Visual C#.Net >> Hiding TabPages "Paul Sampson" <EMail@HideDomain.com> wrote in
news:EMail@HideDomain.com:

> 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.

--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at