Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to stop backspace key moves from one textbox to anot
Message
De
01/01/1997 12:45:23
 
 
À
31/12/1996 11:27:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00016236
Message ID:
00016284
Vues:
44
> In KeyPress event you can check SelStart property and if it equals to 0, you intercept the case and, I think, using setfocus() with nodefault will restore focus to the textbox.

actually after you trapped the backspace in the Keypress event (and confirmed it will get outof the field - either by if alltrim(this.value)="" or by what Edwards said or whatever) issueing a NODEFAULT will prevent the
Keypress from being processed

Arnon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform