Alex Rivera | Logout

How do I insert a drop-down menu for a simple Windows Forms app in Visual Studio 2008?

Asked 2009-06-23T06:52:08.883
35

There appears to be every other kind of drop-down menu--those that allow user input, those for integers only, those that don't...drop down, and even those that have ugly check boxes next to them. I just want a simple drop-down menu (like you'd see if I used in html) that lets the user choose exactly ONE item. (and one's chosen by default)

Any ideas? This should be extremely easy, yet I've spent an hour and half figuring this out...

Edit
Report

1 Answer

48

You can use a ComboBox with its ComboBoxStyle (appears as DropDownStyle in later versions) set to DropDownList. See: http://msdn.microsoft.com/en-us/library/system.windows.forms.comboboxstyle.aspx

answered 2009-06-23T07:04:44.413

Your Answer