Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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.
Posted
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.
  • *Experts*
Posted

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

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...