PDA

View Full Version : Solved: Keycode value



bkudulis
03-09-2005, 09:48 PM
I am trying to find the function or a function that will give me the value of a key or a comination of keys pressed. I want to use this in a keydown event.

Steiner
03-10-2005, 12:38 AM
Why not just build a "debugging" userform which just has a label and give it the following code:



Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Label1.Caption = KeyCode
End Sub



Then you should be able to press keys and see their code in the label. Or did I misunderstand you completely?

bkudulis
03-10-2005, 10:12 AM
This worked, thank you very much.