WinForms Drop Down List

S

S Wheeler

Hi-
Hopefully this is a simple one. I need a "Drop down list" - kind of like a
Combo Box but without the ability to type arbitrary text. I tried a list
box, but I want to only show one item in the list, unless the user selects
the "drop" arrow, it which case the list expands and the user can select a
single item. I am using .net c++ winforms and have done this before, but can
not find the right magic to make it work under .net / winforms. Thanks for
the help!
 
S

Sericinus hunter

S said:
Hi-
Hopefully this is a simple one. I need a "Drop down list" - kind of like a
Combo Box but without the ability to type arbitrary text. I tried a list
box, but I want to only show one item in the list, unless the user selects
the "drop" arrow, it which case the list expands and the user can select a
single item. I am using .net c++ winforms and have done this before, but can
not find the right magic to make it work under .net / winforms. Thanks for
the help!

Combobox has a property DropDownStyle. You may want to set it to DropDownList.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top