Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to deactivate the backspace key ?
Message
 
 
To
09/08/2005 14:22:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01039614
Message ID:
01039707
Views:
18
Kouakou,

If what you are trying to accomplish is to prevent backspace from taking you out of a textbox into the previous control (one of the most truly annoying things in VFP) is to put this code into your lowest level textbox subclass:
LPARAMETERS nKeyCode, nShiftAltCtrl

if ( ( m.nKeyCode = 127 ) and ( this.SelStart = 0 ) )
   * prevent backspace from leaving this field
   nodefault
endif
>how to deactivate the backspace key ?
df (was a 10 time MVP)

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

Click here to load this message in the networking platform