General information
Category:
Forms & Form designer
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only