I understand what you are trying to do. We had lots of text boxes with
handlers in VB6 and the set the keyvalue = 0 was a common piece of code.
I am looking for code in dot.net that does this , I know I translated some
of our current code so it is around. Just cannot promiss when it will show
up. I am pretty certain it had to do with the "handled" property though.
Lloyd
"Robin" <an*******@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.com...
Perhaps I am not being clear enough. If I say only want to allow a
keyvalue = to the numeric set and somebody types a "G" which is 71 even if I
set the handled property to true I still see a "G" in the textbox. I don't
want the "G" to be there. I want to trap and disallow invalid keystrokes so
that they never make it to the screen.
Thanks