G
Guest
Hello,
I have a KeyDown event in which I would like to determine if the current key
is a standard character (i.e., from the ASCII character set). In C I would
use something like the isascii finction for this, but I realize the key
values produced by the Keys enumeration are not simply the ASCII value of the
keys. I've found references to the IsInputKey method but I can't fiture out
how it is used (or if it should be used) for this purpose in my KeyDown event
handler. My only other thought is to individually test the value of the
KeyCode against each key value I am willing to accept, but this is much to
brutal and I'm sure, inappropriate.
Thanks,
Ray
I have a KeyDown event in which I would like to determine if the current key
is a standard character (i.e., from the ASCII character set). In C I would
use something like the isascii finction for this, but I realize the key
values produced by the Keys enumeration are not simply the ASCII value of the
keys. I've found references to the IsInputKey method but I can't fiture out
how it is used (or if it should be used) for this purpose in my KeyDown event
handler. My only other thought is to individually test the value of the
KeyCode against each key value I am willing to accept, but this is much to
brutal and I'm sure, inappropriate.
Thanks,
Ray