How do you prevent user input in a ComboBox so that only one of the items in the defined list can be selected by the user?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set the
DropDownStyleproperty of the combobox toDropDownList. This will allow only items in the list to be selected and will not allow any free-form user input.