Solved

Stopping User Input On Combo Box

Posted on 2006-06-26
2
199 Views
Last Modified: 2010-04-23
Hi,

Is there any way to stop the user entering data into combo box fields in VS 2005?

Thanks.
0
Comment
Question by:AMLabels
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 125 total points
ID: 16982406
Hi AMLabels,

combobox1.DropDownStyle=ComboBoxStyle.DropDownList

Or in the design view set the DropDownStyle property to DropDownList. This will prevent access to the edit area of the combobox.

Tim Cottee
0
 
LVL 7

Expert Comment

by:pradeepsudharsan
ID: 16982436
ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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