Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping keys
Message
 
 
To
14/09/2000 01:39:08
Ian Johnston
Computer Software Solutions
Woodland, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00416249
Message ID:
00416279
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform