Quitter en appuyant sur ESC

reg3d1t - 19 juil. 2001 à 21:11
 ZadX - 19 juil. 2001 à 22:09
En appuyant sur la touche ESC, je désire fermer mon programme. Comment faire ?

Merci davance!

1 réponse

trop facile
dans la form met KeyPreview à True
Dans Form_KeyPress
If KeyAscii = vbKeyEscape Then Unload Me
Voila !
0
Rejoignez-nous