Skip to main content
GameDev.net gamedev.net
🔒 Locked

[.net] Creating Context Menus

Started by Sambori Mar 11, 2010 at 11:52 AM 4 replies 1.9k views
Original Post
Sambori
Sambori
Using C# and Visual Studio 2008, is there a way I can create context/pop-up menus through the designer instead of coding it by hand? Thanks.
ChaosEngine
ChaosEngine
using winforms or wpf?
if you think programming is like sex, you probably haven't done much of either.-------------- - capn_midnight
Sambori
Sambori
Winforms :)
Sambori
Sambori
I guess the answer is no? :)
Codeka
Codeka
Quote:
Original post by Sambori
I guess the answer is no? :)
Why would guess that? Because nobody responded with the answer in 20 seconds?

In the Toolbox, there'll be an entrt for "ContextMenuStrip" underneath the "Menus & Toolbars" entry. Just drag that onto your form and design away.
Lord of 13
Lord of 13
Quote:
Original post by Codeka
Quote:
Original post by Sambori
I guess the answer is no? :)
Why would guess that? Because nobody responded with the answer in 20 seconds?

In the Toolbox, there'll be an entrt for "ContextMenuStrip" underneath the "Menus & Toolbars" entry. Just drag that onto your form and design away.


Don't forget, on the properties of the control that will have the context menu, scroll down to "ContextMenuStrip" under the "Behavior" section and set it to the relevant strip.
Proud creator of gCode SL and the XNA Platformer,Zwiel.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.