P
Paul Paiva
In the VB6 days I was successfully able to validate the keys typed into a
text box, to allow only numeric keys, or whatever the need was. I would
simply trap for those values in KeyCode or KeyAscii in the key_down or
key_press events. When I wanted to disallow a given key, I would set the
value of KeyCode or KeyAscii to zero.
In dot net, I'm finding that it is doesn't work quite the same way. I've
tried a few techniques but no avail. I'm thinking there is some basic
concept I am missing. If anyone has some basic key validation code that
would be helpful, or can you point me in the right direction.
Thanks
Paul
text box, to allow only numeric keys, or whatever the need was. I would
simply trap for those values in KeyCode or KeyAscii in the key_down or
key_press events. When I wanted to disallow a given key, I would set the
value of KeyCode or KeyAscii to zero.
In dot net, I'm finding that it is doesn't work quite the same way. I've
tried a few techniques but no avail. I'm thinking there is some basic
concept I am missing. If anyone has some basic key validation code that
would be helpful, or can you point me in the right direction.
Thanks
Paul