Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security for tab pages
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01451863
Message ID:
01453835
Views:
45
Thanks, Kevin. I will try the latter approach and give you a holler if I have any trouble.

>Linda,
>
>>The only other choice I have been able to figure out is to use object.dispose() to get rid of pages that I don't want them to see. However, this doesn't help if I want them to be able to have read-only access. It is also a headache because then I have to check all my set up code, such as initializing combo box indexes, to make sure it's not trying to do something on a tab page that has been disposed of. I did get this to work with minimum headache by just moving the code to the end of all the other initialization. A bit inefficient on the code side but easier for maintenance.
>>
>>Suggestions? Thanks.
>
>I took a look at the source code and notice the code in mmPanel.SetAccessReadOnly() was setting Enabled to true rather than false. I changed the code to the following and it works fine now:
>
>
public virtual void SetAccessReadOnly()
>{
>	this.Enabled = false;
>	this.Visible = true;
>}
>
>I have made this change for the upcoming 3.6 release, but for now there are two approaches you can take:
>
>1. I can show you how to change the source code and recompile the current version you have
>2. You can create a subclass of mmPanel and put this code in an override of SetAccessReadOnly().
>
>Let me know which approach you would like to take...
>
>Best Regards,
Linda Harmes
HiBit Technologies, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform