Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping keys
Message
 
 
À
14/09/2000 01:39:08
Ian Johnston
Computer Software Solutions
Woodland, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00416249
Message ID:
00416279
Vues:
21
>Can anyone tell me how to trap the plus and minus keys on the key pad ?
>
>TIA
>Ian

You can set the KeyPreview property of your form to .T. and test for nKeyCode being 61 for = and 43 for + in the KeyPress event of the form. If you don't want those keys passed to the currently active control (e.g. textbox) then issue a NODEFAULT when you detect them.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform