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)
Start the conversation
0 comments