Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement