Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to disable tab key
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00124536
Message ID:
00124617
Views:
21
>>>is it possible to disable tab key, or other keys for that matter?
>>
>>Timothy,
>>
>>In a form class set the KeyPreview property to .T. and put this in the KeyPress;
>>
>>
>>IF nKeyCode = 9
>>   NODEFAULT
>>ENDIF
>well what I am getting at is that when a textbox receives the focus, the users should onlt be allowed to hit enter or click on QUIT. There are other controls but if user clicks on them, trouble occurs. I'd hate to issue disables all over the place then enabled them afterwards, alot of code.

The don't put the code in the form's keypress instead put it in the textbox's keypress.
Previous
Reply
Map
View

Click here to load this message in the networking platform