Hi, I am writing a program using the keydown event. It works great except I can not get it to send the number keys and other keys like, space, enter, shift, etc. to my text file? Why, would it send letters and not numbers. An example of my code follows:

Code:

Private Sub Form_KeyDown(keycode As Integer, Shift As Integer)

If keycode = 54 Then
Dim ggFile As Integer
ggFile = FreeFile
Open "C:\Log.txt" For Append As ggFile
Print #ggFile, "6";
Close ggFile
End If

Also, When I make the program Invisible it will not send any keys to the file.
Thanks,

Kevin

Edited by kevdog on 02-27-2000 at 02:02 AM