Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping the Backspace Key
Message
From
13/08/1999 12:11:19
 
 
To
13/08/1999 12:06:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00253434
Message ID:
00253440
Views:
28
>Hello everybody-
>A quick question for the sages. How can I best trap the backspace key in a textbox so that after the text is fully deleted the textbox does not lose the focus? I only want the focus to move to the previous control by using the mouse or shift-tab.

Set KeyPreview to .T. in the form. In the textbox KeyPress event look for the backspace a 127.
Previous
Reply
Map
View

Click here to load this message in the networking platform