*-- KeyPress Method LPARAMETERS nKeyCode, nShiftAltCtrl If This.KeyPressNoDefault( nKeyCode, nShiftAltCtrl ) NoDefault EndIf *-- KeyPressNoDefault Method LPARAMETERS nKeyCode, nShiftAltCtrl Local llRet llRet = .F. If oEnv.oSettings.BackSpaceBehavior = 0 If Vartype(nKeyCode) = "N" And This.SelLength = 0 AND nKeyCode=127 If Substr(Alltrim(This.InputMask),1,1) = "(" IF This.SelStart = 1 llRet = .T. Endif Else IF This.SelStart = 0 llRet = .T. Endif EndIf EndIf EndIf Return llRet>>Is there any settings i can apply to textboxes so when backspace is pressed and the cursor is at the beginning of the textbox the focus is not set to the previous control but remains in the textbox?
*keypress >LPARAMETERS nKeyCode, nShiftAltCtrl >If this.SelStart=0 and nKeyCode=127 > NoDefault >endifCetin