combo box don't want to let them change value of text

i have a combo box on my form. I have put in the list the value 1,2,3,4,5
I don't want them to be able to go on combo box and put in a value.
I just want them to choose one with the arrow button.
thanks!!!!!
jerbellAsked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
Use the Style property:
vbComboList
0
 
GivenRandyCommented:
Set the Locked property to True.
0
 
Joe_GriffithCommented:
I think what you want is to set the style to "2 - Dropdown List".  This will allow the user to select one of the 5 option but not to enter anything else.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
GivenRandyCommented:
I think you mean vbComboDropDownList, which is an alternative.
0
 
Joe_GriffithCommented:
You should set the combo's style in the property list to "2 - Dropdown List".  The style is read only at runtime so you cannot set it in code.
0
 
jerbellAuthor Commented:
exactly what i wanted
Thanks !!!!!!!!!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.