Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sublass Menu and use
Message
 
À
22/02/2006 17:15:22
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01098289
Message ID:
01098362
Vues:
11
Ken,

>Is there any way (or what is best way) to create independant, sublassed menus and then have them get instantiated and displayed/removed on a form at runtime? Here is what I'm trying to accomplish. I would like to have my main app form's (mdi form) menu change depending on selections - i.e. the user picks something from one menu and a whole new menu appears -I'm not talking just a few item changes or additions, but a wholesale new menu appearing.

I haven't tried this before, but I recommend checking out the code generated for menus you create at design-time in your form's .designer.cs file and emulating that.

Also, here's an article containing some sample code demonstrating how to do this with the Visual Studio 2003 MainMenu...you could adapt it for the MenuStrip.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform