Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

VB.net ComboBox Force user to select from tge dropdown

Posted on 2013-05-17
2
888 Views
Last Modified: 2013-05-21
Hi

In my VB.net app, I have a Windows Form with a ComboBox on it.
What is the best way to force the user to select an item from the drop down
and not type anything into the box that isn't in the drop down.

Thanks
0
Comment
Question by:murbro
2 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 39176726
Change the combobox DropdownStyle property to DropDownList:
http://msdn.microsoft.com/en-us/library/system.windows.forms.comboboxstyle.aspx
0
 

Author Closing Comment

by:murbro
ID: 39186609
Thanks very much
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
get row value in vb.net 4 17
ASP/VB email question 4 46
How to open a different table using the same bindingsource - vb.net 3 34
Groupbox Control ? 2 17
This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question