Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Backspace = Tab????
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00517207
Message ID:
00517231
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>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

&& backspace or left arrow will not exit textbox
if (this.selStart = 0)
	if nKeyCode = 127 or nKeyCode = 19 or (nKeyCode = 52 and nShiftCtrl = 1)
		noDefault
	endif
endif
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform