Hi guys i want to ask you something. i have created a project in visual basic 2010 with a combobox. I have added some values in it but when i 'run' it (with F5) everyone can type his own text in the combobox.. i just want the user who will be using this program, to have to choose one value from the list and cant write something else. Is it an option at properties of combobox or i must write a code? Please help, Thanks.
Asked
Active
Viewed 955 times
0
-
What u wanna say here? – Saroop Trivedi Jun 26 '13 at 15:48
-
Take a look here: http://stackoverflow.com/questions/2773430/vb-net-how-to-prevent-user-input-in-a-combobox – Irvin Dominin Jun 26 '13 at 15:59
1 Answers
0
You can change the DropDownStyle
property from DropDown
to DropDownList
. This changes your ComboBox (=dropdownlist combined with a text field) to function as a pure dropdownlist.

KekuSemau
- 6,830
- 4
- 24
- 34