Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping the Backspace Key
Message
 
 
To
13/08/1999 12:06:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00253434
Message ID:
00253726
Views:
24
Scott,

Here's the KeyPress() method of my lowest level textbox class:
LPARAMETERS nKeyCode, nShiftAltCtrl

if ( ( nKeyCode = 127 ) and ( this.SelStart = 0 ) )
   * prevent backspace from taking us out of this textbox and into the prior TabOrder control
   nodefault
endif
>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform