Lets say that I want a text field to only receive numerical input.
I know I can intercept the key codes with the OnKeyDown and OnKeyPress events.
But, that only allows me to check for the code of the key.
So, how can I filter out all key codes that are not numerical and above ASCII 31 (to allow for backspace and Return) and only allow the Unicode field to receive numerical inputs?
I know I can intercept the key codes with the OnKeyDown and OnKeyPress events.
But, that only allows me to check for the code of the key.
So, how can I filter out all key codes that are not numerical and above ASCII 31 (to allow for backspace and Return) and only allow the Unicode field to receive numerical inputs?