Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TabControl Page Enabled property
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
TabControl Page Enabled property
Miscellaneous
Thread ID:
00876963
Message ID:
00876963
Views:
42
I am building an application using Windows Forms (VB.Net 2003).

I need to disable some pages of a tab control depending on users privileges. It seems that the Enabled property disable the content of the tabpage and not the access to the tabpage.

Then I found http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskdisablingtabpagesprogrammatically.asp which is using the SelectedIndexChange to detect when a tab is selected and switch to another.

There are 2 things that I don't like about this:
1. There is a visual flicking. How can we stop the flicking?
2. There is no visual clues that the tab is not enabled. How can we gray the caption of the tab page?

Or if you have better ideas please tell me!
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Next
Reply
Map
View

Click here to load this message in the networking platform