Problem solve Get help with specific problems with your technologies, process and projects.

How to create a contextmenu with mainmenu menuitems

You can create a menu based on the already existing menu using clonemenu method of menuitem.

This tip was submitted to the VS.NET Info Center by member Thomson Alexander. Please let other users know how useful it is by rating it below. Do you have a tip or code of your own you'd like to share? Submit it here!


You can create a menu based on the already existing menu using clonemenu method of menuitem.

If your mainmenuitem is mainmenuitem1, and the contextmenu is contextmenu1, then you can get the menu items in mainmenu to contextmenu using the following code:

Contextmenu1.menuitems.add(mainmenuitem1.Clonemenu)

Dig Deeper on .NET Framework application performance management

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

Close