Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security setup not working on Win form controls
Message
From
16/09/2005 18:16:20
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Security setup not working on Win form controls
Environment versions
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01050518
Message ID:
01050518
Views:
56
Hello -

I'm working with the Northwind sample application for C#. I've been going through the dev guide trying to implement security, and I'm getting an odd problem.

I'm using v1.4.1 on Win2K with VS.NET 2003. I'm able to add control IDs to multiple mmTextBox controls (say Name and Postal Code for example). I've also added a control ID to the Lists->Employee menu item.

When I run the application and put it into "Security Setup" mode, I do see the Employee menu item in red, and when I click it, it works as expected - bringing up the Security Setup box.

My problem is that when I go into the CustomerOrdersForm, select a customer, and go to the Properties tab, I only get one lock icon, right at the top corner of the properties tab. Nothing by my text boxes. When I click on the lock at the top, I get a null object exception.

I've traced it through, and it seems that when it hits the mmSecuritySetupIconBase.mmPictureBox_Click method, the value for this.SecureControl is undefined.

I've tried lots of things, but the fact that it works for menus, but not for controls on a form seems odd. Would you be able to give me advice on how to fix this?

Thank you!

Jeff
Next
Reply
Map
View

Click here to load this message in the networking platform