Re: Restrict keys in textbox w/o KeyAscii?
(Thursday, December 23, 2004)
Found the following interesting discussion in the Newsgroups:
Re: Restrict keys in textbox w/o KeyAscii? by:hansolo
| > Ok folks. Had some code in VB6 that worked fine within a TextBox KeyPress
| | | Reply: by:Claes Bergefall
| | | Can't seem to find the start of this thread?! Well, ayway
There is nothing wrong with your keyboard You have your ASCII codes mixed up n = 110 N = 78 Backspace = 8 / = 47
ASCII for Del is irrelevant since it doesn't generate a KeyPress event Never heard of the HELP key. Do you mean F1? You should support ',' aswell (ASCII 44)
/claes
| | | Reply: by:hansolo
| | | Thanks, you are correct as I am sure you know. I was getting my information from the Keys Enumeration member help topic in .NET 2003. Evedently a few things in this table do not match the Ascii codes. Pretty close though.
Thanks for picking up on my error.
Chuck
|
Posted by Xander Zelders

|
0 Comments:
Post a Comment
<< Home