I have a list box connected to a database.
I dont want the user to be able to type their own text into the listbox, i just want them to be able to choose from the drop down box.
How do i go about doing this in Visual Studio 2010?
Cant seem to find a property for it.
I’m going with WinForms here.
ListBoxandDropdownBox(ComboBox) are 2 different controls.In a
ListBoxyou can’t enter text by default, so I think you’re talking about aComboBoxhere.That control has a property
DropDownStyle. When you set that toDropDownList, the user can’t enter his own text.