Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I make controls initialize after the form ?
Message
 
À
10/06/1998 12:31:49
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgique
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00106819
Message ID:
00106889
Vues:
19
>I create a cursor in the init phase of the form. If the init phases of my controls fire, I'm getting errors that the controlsource doesn't exist yet because the init of controls is before the init of the form. I can solve it by setting the controlsource of the control in the init fase of the form. How can I do this without this trick. I need this because I want us to be able and past controls (from the classes) on to a form without having to modify it's init phase.

Jeroen --

If you create the cursor in the Load() event, your problem is solved. If the cursor creation depends upon incoming parameters, you may want to consider changing the form's WindowType property to 2 or 3. This caused the parameters that you send to the form to be be received by the Load() event instead of the Init() event. Of course, this will change the behavior of the form, and you may not want that.

Bill
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform