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.
If you want to add a part of mainmenu in contextmenu, you can use the mergemenu method. Say your contextmenu is contextmenu1, and mainmenuitem is mainmenuitem1, then you would use: