Solved

VB.net ComboBox Force user to select from tge dropdown

Posted on 2013-05-17
2
879 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now