PDA

Click to See Complete Forum and Search --> : KeyDown/KeyUp HELP!!!


GatesKeeper
Nov 3rd, 1999, 09:53 AM
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

Compwiz
Nov 3rd, 1999, 10:02 AM
Try setting the form's KeyPreview property to true.

------------------
Tom Young, 14 Year Old
tom@e-bizinternet.com
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer

QWERTY
Nov 3rd, 1999, 10:06 AM
Do what Compwiz said and also place this code in Form's KeyDown event.
It seems to work for me.

QWERTY

Compwiz
Nov 3rd, 1999, 10:08 AM
Oh yeah... forgot that part too. Thanx QWERTY.