System.Windows.Forms.ComboBox

  • Thread starter Thread starter genc ymeri
  • Start date Start date
G

genc ymeri

How can I avoid allowing user to type in the a ComboBox ?? I see not
read-only property over there.

Thank You.
 
Change the "DropDownStyle" property to "DropDownList".

- Noah Coad -
Microsoft MVP
 
Greets,

Change your ComboBox DropdownStyle property as follows:

comboBox1.DropdownStyle = ComboBoxStyle.DropDownList;

You can also change the property for the control in your properties
window.

Regards,

Joe
 
thanks a lot ! :)
Joe Delekto said:
Greets,

Change your ComboBox DropdownStyle property as follows:

comboBox1.DropdownStyle = ComboBoxStyle.DropDownList;

You can also change the property for the control in your properties
window.

Regards,

Joe
 
Back
Top