473,395 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

C# App: Help on validation of combobox

navanova
Hi, I'm developing an application using c#. I just want to validate the combobox so that if the user wants to type anything on the combobox, the system won't allow the user. Remeber, all I want is a validation that controls a user if anything is typed and tries to save.

I thank you.
Dec 31 '07 #1
2 8036
SammyB
807 Expert 512MB
No C# on this machine: I'm on vacation, so I cannot tell you the exact properties. But you can set the properties of the combobox so that it only allows the user to select items in the list. HTH --Sam
Jan 1 '08 #2
dip_developer
648 Expert 512MB
Hi, I'm developing an application using c#. I just want to validate the combobox so that if the user wants to type anything on the combobox, the system won't allow the user. Remeber, all I want is a validation that controls a user if anything is typed and tries to save.

I thank you.
make the DropDownStyle of your combo to DropDownList

Expand|Select|Wrap|Line Numbers
  1.  ComboBox1.DropDownStyle=ComboBoxStyle.DropDownList;
Jan 2 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Peter Blum | last post by:
I have built an assembly (dll) from which I expect third parties to subclass. As a result, when my assembly has a version change, it will cause any third party assembly based on it to break unless...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
4
by: Frank Rizzo | last post by:
I am trying to make sure that my app works fine with browsers other than IE. I am finding that many features simply don’t work on other browsers. For instance, the Validators are actually doing...
2
by: Vojislav | last post by:
How to make APP with more quality - you know THE PROBLEM when some pipl eneter letters in combobox where he shold put number. i know for validation rules ... but is there any free on line book or...
0
by: Janning Vygen | last post by:
Hi, i have a question about how to handle postgresql constraint errors in the client app. I found some mails in the archive about it, too. But i have still so many questions about how to do it,...
3
by: Elainie | last post by:
I have 2 fields one completed date and the other a combo box with 4 headings, completed is one of them If completed is selected and the date hasnt been filled in I would like to have a message...
5
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, All, how to edit item in the comboBox in main form afetr start run app? Thanks, Martin
5
TonFrere
by: TonFrere | last post by:
Hello, I have a visual C# application that is binded to a Sql server DB. I'm experiencing a lot of frustration when it comes to bind a combobox to a specific table. It seems that validation never...
3
by: Gerhard | last post by:
Hi I have a combobox on a form which gets it's Row Source from a table. I then use an Append Query to save the selected data in the combobox to a file. Everything works fine. The Combobox's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.