Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling ESC Key in a Form???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00000777
Message ID:
00000786
Vues:
49
>Sounds simple enough yet I have not been able to
>crack the
>secret. I have tried SET ESCAPE OFF and ON ESCAPE
>* in the
>INIT of the form without success. I am not
>attempting to
>trap the key in the KeyPress Event, which I can
>do; But
>what do I call after I trap the ESC key in that
>event. Where
>do I need to branch to after trapping the ESC key?
>Again, my user has requested the ESC key be
>disabled
>everywhere throughout the entire application. I
>initially
>thought of just two lines of code as previously
>mentioned.
>Any thoughts to solve this puzzle would be
>appreciated.
>Thanks


Make sure you 'KeyPreview' in the Form is set to TRUE
and trap the key in the Form KeyPress() event.

Hope this helps,
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform