Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GotFocus
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
GotFocus
Divers
Thread ID:
00354241
Message ID:
00354241
Vues:
45
Does someone know how I can still execute Gotfocus if the control already has focus to start with?


I need to put a message for the user when they are in a certain control. So I put code in the GotFocus event. Trouble is GotFocus is not is not fired if the control is already active and the user skips to the next record. So I decided to put code in the refresh event. Now I only want to put the message onthe status if the user is in this particular control. So I use object.activeControl to check the control is actually active. But activeControl.property generates an error when the form is first launched. But works fine there after. Any ideas why and how to resolve this. Or any better ideas of achieving this?

Thanks.
Mathias Banda

Time is longer than a rope.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform