|
-
November 2nd, 2011, 12:32 PM
#3
Re: .net v3.5 readline errors when user submits null or string
You're using the wrong control for the job. You should be using a NumericUpDown that has a range of 1-3. Now your users cannot enter invalid input, period.
The error checking code above will not get you there in it's own. It's always better to simply not allow invalid input from the get go rather than popping up an error after the fact.
If you liked my post go ahead and give me an upvote so that my epee.... ahem, reputation will grow.
Yes; I have a blog too - http://the-angry-gorilla.com/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|