bhatti81 Posted August 28, 2003 Posted August 28, 2003 how do we make the combo box read only (uneditable) i.e. it should only show the items in its collections, and on clicking it we shouldn't be able to write text into it. Quote
sjn78 Posted August 28, 2003 Posted August 28, 2003 You could always use the validated event to grab the users input and then loop through each item in the list and if it doesn't match, give a message box saying its no good and clear the text. Quote
*Experts* DiverDan Posted August 28, 2003 *Experts* Posted August 28, 2003 Try setting the ComboBox drop down style to DropDownList. That will make it read only. You will then need to use "ComboBox1.SelectedItem = "or "ComboBox.SelectedIndex = " to display one of its list members. Dan Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.