Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing User & Updating form
Message
De
24/09/2007 12:46:56
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01245853
Message ID:
01256364
Vues:
21
>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
Fil
Voir

Click here to load this message in the networking platform