Also check out the KeyDown event.
If you want to see a full project that deals with a numeric edit-box, check out this .
It's probably more than you're looking for.
thines01
Postaholic
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
Hi tontano, welcome :)
You could probably use some ideas from this snippet as well.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
Would this be placed in in some sort of validating procedure?
Wow, man, consider the poor user who just has typed a long accesscode with one typo in it. For this he gets punished with a message that tells him little and an empty texbox!
Your users gonna really like your software. This will definitly become a million seller software the world has never seen!!!
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
This doesn't work on my keyboard.
I first have to type the shiftkey(KeyValue=16) to type a digit.
You also don't test for keypad keys!
And why empty the Text after every error, just as barriegrant1 does?
PLease always use code tags.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661