Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb6 keydown event

Status
Not open for further replies.

duponty

Instructor
Oct 25, 2000
101
CA
Hi there,

I have this code


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

Select Case KeyCode

Case vbKeyRight
Shape1.Left = Shape1.Left + 100

End Select

End Sub




which works perfectaly...

But when I change the shape for an anigif (anigif.ocx) it is not working at all...

any clues?

thanks
Yannick
 
Set the KeyPreview property of the form to True and try again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top