>Hi Friends, it´s me again!!
>
>I have a problem: In my form, I have 4 TextBox controls. The problem is that If You use Backspace key, and contiune using even when you erase all data in the textbox, other TextBox has the focus. How can I avoid that behavior????
>
>Thanks in advance!!
You can put something like this in the KEYPRESS() method of your textbox class...
LPARAMETERS nKeyCode, nShiftAltCtrl
if (this.selStart = 0)
if nKeyCode = 127 or nKeyCode = 19 or (nKeyCode = 52 and nShiftCtrl = 1)
noDefault
endif
endif
Steve Gibson