Information générale
Catégorie:
The Mere Mortals .NET Framework
>I have added security to the main form. Menu options appear and disappear as planned. However, when the main form is already displayed and I change users (UserLoginForm), the security for the menu does not update. Specifically, if someone with a different security status logs in, the changes are not reflected. How do I get the menu to update?
You need to reinstantiate the menu strip to get it to pick up the new settings.
Reinstantiate as in
this.mainMenuStrip = new OakLeaf.MM.Main.Windows.Forms.mmMenuStrip();
and add the items, events...?
Or is there an obvious way I'm overlooking (as usual)
Thanks,
Jeff
Précédent
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