C# – How to insert a drop-down menu for a simple Windows Forms app in Visual Studio 2008

cdrop-down-menuvisual studiovisual-studio-2008

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…

Best Answer

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