Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to SetFocus from within a Valid()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00929751
Message ID:
00929795
Vues:
5
>(Using VFP 8)
>OK,I know you can't but here is the problem. I have a sign-in form with one user input text box where they enter a password to sign in/out. I have a valid in the text box to find and display the user name and status. I have two buttons: Sign In & Sign Out. Depending on their status I need to set focus to the proper button. I need both buttons in case they forgot to sign in /out the last time and have to select the other button. I can't set focus from within the valid of the text box. I tried putting it in the LostFocus() but it causes the Valid() to fire again. I know I'm missing something here.
>TIA

John,

IIRC, you can set the focus from the LostFocus event, but not the Valid. However, if you add a custom property to check on the control and assign it during the Valid event, you'll get the same results by checking the property in LostFocus.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform