I have a combobox which contains the different values from database. However, if the user types another name into the combobox, it is accepted. I want to allow only the names already associated with the control. But there is no readonly property form a combobox in VS 2010

Recommended Answers

Set DropDownStyle property of combobox to "DropDownList" it will make the control only hold values you want

Jump to Post

All 2 Replies

Set DropDownStyle property of combobox to "DropDownList" it will make the control only hold values you want

Thanks Abel :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.