Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When is a form totally displayed?
Message
De
08/06/2007 10:23:17
 
 
À
08/06/2007 09:51:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Divers
Thread ID:
01231503
Message ID:
01231581
Vues:
10
>>You could put your code in Form.Activate event triggering it to ensure that it will fire one >time only:
>>Init event:
>
>>This.FirstActivateFlag=.T. && custom property
>
>Hi Edward
>I prefer to do that in the init() method, that way it only fires once, and in the init() method of the form the commnadbutton is already active and you can execute it's click()) method
>
>In the form's init()
>
>thisform.cmdMyCommandButton.Click()
>
>and it works.
>It can be done in the activate method of the form of course, but you need a flag in order to know that it won't be executed twice
>Regards
>Hernan

Actually, I explained in my message how it's going to be fired once form Activate. Please, read it again in entirety. There are situations when firing in Init is premature.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform