DropDownList in Winforms

  • Thread starter Thread starter Lew Barnesson
  • Start date Start date
L

Lew Barnesson

Hi,

I need a WinForms DropdownList (which for some reason isn't in the ToolBox).
The ComboBox would be a good compromise, except that I can't find a way to
make it ReadOnly. Am I missing something?

- Lew
 
Lew said:
Hi,

I need a WinForms DropdownList (which for some reason isn't in the ToolBox).
The ComboBox would be a good compromise, except that I can't find a way to
make it ReadOnly. Am I missing something?

- Lew

Locate the property: DropDownStyle and change it accordingly.

-Keith
 
Keith,

Thanks for your reply. I believe you misunderstood my problem. I was already
considering ComboBox because it has a DropDownStyle.

The problem is: I need a way to make the ComboBox ReadOnly. Any ideas on
that? :-)

- Lew
 
As Keith suggested, locate the DropDownStyle property of the combo box
in the Properties window. Set its value to DropDownList. This will make
the combo box read-only.
 
Back
Top