VB.net 2.0 Winforms: textbox bound to an integer database field doesn't accept text, yet no user error thrown?

Textboxes bound to integers 'trap' the cursor if A-Z are entered....
I'd like to make this more user friendly!

----------------------------------------------------------------------

I'm building a simple data entry form in Vb.net 2.0

I have a bunch of bound textboxes.

to my delight, the textboxes bound to numeric fields in the database seem to have some nice functionality - although they'll take A-Z, you can't leave the field if those values are present.

There's no beep, no little red circle, nothing!

I assume this is a 'feature' in .net, I'd like to know how to 'enhance' the feature, by letting a user know WHY they are 'trapped' in the field.
LVL 12
fruhjAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Carl TawnSystems and Integration DeveloperCommented:
Theres no little red circle because you presumably don't have a range validator control on your form linked to the textbox. Try adding one, you can specify that only numbers are allowed and define a message to be displayed if the input is invalid.

Alternatively you can manually validate the data using the KeyPress or Validating events for the control.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
fruhjAuthor Commented:
Sorry about missing this,

Started a new contract with no access to EE :-(

Carl thanks for replying!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

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.