Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sublass Menu and use
Message
De
23/02/2006 01:23:58
 
 
À
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:
01098372
Vues:
5
This message has been marked as the solution to the initial question of the thread.
You can drop multiple menustrips on the form. Set the mainmenustrip property of the form to the initial menu to display.

Then on the click method of the menu option that is to change the menu just run the code:

this.Menu = NewMenutoDisplay



>Hi,
>
>Winforms/C#
>
>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.
>
>Thanks,

(On an infant's shirt): Already smarter than Bush
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform