JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1616
|
Re: ASCII
For VB6, for any KEY pressed
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If Shift Then
MsgBox KeyCode + 32 ' a is different keyascii than A, but same keycode
Else
MsgBox KeyCode
End If
End Sub
|
But for just the keys (a-z, etc)
Private Sub Form_KeyPress(KeyAscii As Integer)
MsgBox KeyAscii
End Sub
|
[Edited by JLRodgers on 11-04-2007 at 06:57 PM GMT]
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|