Link to home
Start Free TrialLog in
Avatar of jerbell
jerbell

asked on

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!!!!!
Avatar of GivenRandy
GivenRandy

Set the Locked property to True.
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
I think you mean vbComboDropDownList, which is an alternative.
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.
Avatar of jerbell

ASKER

exactly what i wanted
Thanks !!!!!!!!!!!