I'm making a calculator that receives input through the form's KeyUp event. I created a Select Case to know what characters were input like this:
VB Code:
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer) Select Case Chr(KeyCode) Case "0"
This works fine when I type with the numbers on top of the letter keys, but when I use the numbers to the right of the keyboard, Chr() returns some weird characters, like 96 (`).
How can I know what characters were typed down for real?
Thank you.




Reply With Quote