In VB6 I would limit the characters allowed in a text box by saying
VB Code:
  1. if keyascii=??? then
  2.     keyascii=0
  3. endif
The ??? being what ever I wanted to compare against
Now with .Net there is only a readonly keychar property.

How do I limit keypresses to numeric values.