Non-editable ComboBoxes?

  • Thread starter Thread starter Ana Lindt
  • Start date Start date
A

Ana Lindt

Hi,

I would like to make my ComboBox non editable, meaning that the user cannot
click on it in order
to type some text but only for selecting one of its pre defined items. How
do I do this using code
(C#) or the designer? I thought there would be a property for this but I
cannot find any.

Many thanks in advance,

Ana L.
 
* "Ana Lindt said:
I would like to make my ComboBox non editable, meaning that the user cannot
click on it in order
to type some text but only for selecting one of its pre defined items. How
do I do this using code

Set its 'DropDownStyle' property 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

Back
Top