Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ESC for exit the Form
Message
De
30/03/2000 18:06:54
 
 
À
30/03/2000 18:02:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00352969
Message ID:
00352973
Vues:
12
>The user can close the form with CTRL+F4 or clicking the upper right corner or object with "ThisForm.release()" code. How could I make that the "ESC" would have the same effect?

Do you have a command button that closes the form? A button with the "Cancel" property set to .T. will automatically fire when the Esc key is hit. Or you could use the KeyPress property and wait for KeyCode 27 (You'll want to set the KeyPreview property in this case). Or you could use ON KEY LABEL or ON ESCAPE, but those would be the older ways of things, not very clean either.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform