How can I read the keys like F1,F2, F3 or MoveKeys (Up, Left, Down, Right) from a Keypress method ?
Do I need to read twice the keyascii var like C++?
Printable View
How can I read the keys like F1,F2, F3 or MoveKeys (Up, Left, Down, Right) from a Keypress method ?
Do I need to read twice the keyascii var like C++?
take this as a starter
private Sub Form_KeyUp(KeyCode as Integer, Shift as Integer)
If KeyCode = vbKeyF1 then
MsgBox "F1"
End If
End Sub
Function keys are not ascii characters but ANSII!
With this in mind, keep going on. About cursor keys use vbKeyDown. vbKeyUp, vbKeyHome, vbKeyEnd, etc.
Michael Vlastos
Company MODUS SA
Development Department
Athens, Greece
Tel: +3-01-9414900