rbulph Posted December 8, 2005 Posted December 8, 2005 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? Quote
rot13 Posted December 14, 2005 Posted December 14, 2005 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 Quote
rbulph Posted December 14, 2005 Author Posted December 14, 2005 Yes, I'm aware you can do that. And I think I can generate the menu at run time in code. But I do think it's a bit poor that I have to do so. Quote
rot13 Posted December 14, 2005 Posted December 14, 2005 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. Quote
Administrators PlausiblyDamp Posted December 14, 2005 Administrators Posted December 14, 2005 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rbulph Posted December 15, 2005 Author Posted December 15, 2005 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.