Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I do want to set "read only" property to Combobox so that user can only select data but can not write anything in Combobox.

Do anybody having an idea of this?
Posted

Use CBS_DROPDOWNLIST style for your ComboBox.
You can set this style programatically or in the VS designer.
If you are using designer the property is called Type and you can set this property to Drop List.

Regards
 
Share this answer
 
You should choose the CBS_DROPDOWNLIST style (see Combo Box Styles) when creating it.
:)
 
Share this answer
 
Thanks guys!! My problem has been solved.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900