Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with textbox and Backspace.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00143213
Message ID:
00143217
Views:
27
You can put code in the textbox's KeyPress event to stop the backspace from working when the cursor is at the start of the field. Put this in the KeyPress of your textbox class:
LPARAMETERS nKeyCode, nShiftAltCtrl

IF nKeyCode=127 AND THIS.SelStart=0 AND THIS.SelLength=0
   NODEFAULT
ENDIF
>Hello,
>
>We are using VisualFoxPro 5.0a. At the moment we have several forms where we use textboxes and buttons. When we fill something in a textbox and then delete it with the Backspace key it deletes the entered text. However if you keep pressing the Backspace key the cursor will move from one textbox to the previous textbox. And if there isn't a textbox anymore it will move/activate a button.
>
>Is this normal for VFP or can we change this interface? We would like the user to stay in the current textbox.
>
>Thanks in advance for your time and answer!
Previous
Reply
Map
View

Click here to load this message in the networking platform