• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 460
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

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