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!