Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I'd like to have a menu in the menustrip of my form which doubles up as the context menu of a control in my form. Can I do this, or do I need to have a context menu which replicates every item in the menustrip menu?
Posted

As far as I know you will have to have a seperate menu. However, what you can do, is make the same method handle the click event for the menu items on both menus...

 

Handles MenuItem1.Click, MenuItem2.Click

Posted
Yeah, I agree. A menu *should* be a menu... whether it is a context menu, or part of a menu bar... but for now, you'll just have to do it in code or design time. Either way it isn't hard.
Posted
Do it the other way round - design your context menu with the correct items and then on the menu strip go to it's DropDown property - then you can select your context menu and have it appear as part of the Main Menu.

Lovely. Thankyou.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...