This seems like something that should be easy, but I am having a tough time figuring out what needs to happen here.
In the ‘KeyDown’ eventhandler, if the ‘e.KeyValue’ is a number, I want to treat it as a number and store it as an int. So, if I hit ‘8’ on the number pad, I don’t want ‘Numpad8’ I want the int value 8 that I can add or subtract or whatever.
So, how do I convert from the KeyValue to an int?
I’d go with this solution:
…if the point was to get the numeric value of the label of they key that was punched in.