Appuyer sur touche pour faire bouger...

ath|500| - 15 oct. 2001 à 01:34
 The man - 28 nov. 2001 à 20:16
Comment on fait pour faire bouger une image a partir de touche du clavier ???

Je sais que c'est a peut près ça mais ça marche pas.

Private Sub Image1_Click(keypress as integer)
if keypress = vbkeyh then
image1.caption = image1.caption -100
end if
End Sub
Pleaze HELP !!!

1 réponse

Dans ton code tu dois faire :

Private Sub Image1_Click(keypress as integer)
if keypress = vbkeyh then
image1.move image1.left -100, image1.top +0
end if
End Sub

et ainsi de suite
The man :big)
0
Rejoignez-nous