You all know that each key, how can I see
all the ascii codes for, say the key: "q" ??
(I want to press 'q' and get the 3 ascii codes in a message box)
Must be a way right?
Mansour.
[email protected]
Printable View
You all know that each key, how can I see
all the ascii codes for, say the key: "q" ??
(I want to press 'q' and get the 3 ascii codes in a message box)
Must be a way right?
Mansour.
[email protected]
Try something like this. Set Form's KeyPreview property to True and then use this code:
------------------Code:Private Sub Form_KeyPress(KeyAscii As Integer)
MsgBox "You pressed: " & Chr(KeyAscii) & vbCrLf & " ASCII Code: " & KeyAscii
End Sub
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
MsgBox "You pressed: " & Chr(KeyCode) & vbCrLf & " ASCII Code: " & KeyCode
End Sub
Serge
Senior Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819