Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to deactivate the backspace key ?
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01039614
Message ID:
01039718
Views:
20
David,

It was pointed to me by Roy in the Message #883571 that check for 'This.SelLength = 0' is also required.


>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 ?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform