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
31/12/1996 11:27:16
 
 
À
31/12/1996 11:05:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00016236
Message ID:
00016237
Vues:
37
>I don't understand how to stop this behavior.
>
>In most windows programs, the backspace key will only backspace to the left limit of the text box. However, it seems that when there is more than one textbox in a form, the backspace key will take you to the next textbox after you reach the left limit.
>
>My users are complaining and I haven't figured out how to fix this. Any ideas?
>
>D. Bernardo
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.
You can also disable BACKSPACE at all using ON KEY LABEL in GotFocus event, but here you would lose this key for editing purposes.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform