I can't seem to get the Key Down to work. Whenever a specific key is pressed it does not do anything. And example is when I put this
If KeyCode = 102 Then
Picture1.left = Picture1.left + 10
Else
End If
I place this in the Form_Load section
Printable View
I can't seem to get the Key Down to work. Whenever a specific key is pressed it does not do anything. And example is when I put this
If KeyCode = 102 Then
Picture1.left = Picture1.left + 10
Else
End If
I place this in the Form_Load section
Try setting the form's KeyPreview property to true.
------------------
Tom Young, 14 Year Old
[email protected]
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer
Do what Compwiz said and also place this code in Form's KeyDown event.
It seems to work for me.
QWERTY
Oh yeah... forgot that part too. Thanx QWERTY.