Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set focus back to textbox after form is released
Message
De
02/04/1999 00:39:00
 
 
À
02/04/1999 00:35:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00204545
Message ID:
00204547
Vues:
16
You can handle the problem by setting a form object property T/F when the "must-enter" textbox is left (LostFocus or Valid) and using that property in the GotFocus of any other control on the form to redirect input.

Alternately, a really concrete way of doing this is to disable all other form controls when the user enters the textbox in question (via GotFocus again). this will force the issue to be sure.


>I have a textbox which it is a "must-entered" textbox. If it's empty, an error message window will popup and after it's release, the focus have to go back to the "must-entered" textbox. However, the problem i get is the focus jump to the next textbox.
>I have tried to put thisform.txtName.setfocus() in txtName.Lostfocus procedure and the error said that object txtName cannot be found or something like that.
>Please point me to the problem..
>
>
>Gan
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform