• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 458
  • Last Modified:

How do I restrict combobox entries to the collections list?

This seems so trivial, but...
I thought the whole point to a combobox was to restrict selection by a user to entries that appear in the Items collections list. Why is it, then, that I can type something else directly into the combobox, and VB.NET accepts it? Am I missing setting some property? I'm using the standard ComboBox from Windows Forms.
0
jdallen75
Asked:
jdallen75
1 Solution
 
DhaestCommented:
The easiest solution:
Set the following property of your combobox:
Dropdownstyle: Dropdownlist
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now