Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Security setup not working on Win form controls
Versions des environnements
Network:
Windows 2000 Server
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement