Hi simon,
Ken gave you the answer with designer order part. I just wanted to mention this is one of the problems you run into when you rely on controls instanciating in a specific order. Stuff breaks when the order is changed.
Would it be possible for you to programaticly addobject the object from the forms load? That way it should be there when the other controls need it.
>I was using the class designer to design a form. The formed work well for awhile then started to give me an error message when I tried to create it. I eventually discovered that it was loading the controls in a different order than I had created them. One control in particular must be the first control added to the form because it serves as a my custom data environment.
>
>When I looked at the list of controls on the form with the property editor I noticed that my data environment was not longer the first control in the list.
>
>After going through the VCX file I discovered that the ZOrderSet property controls the order that the controls are added to the form. Why would the class designer be changing this?
>
>I cannot find anywhere to adjust this property in the class designer, so I assume it must be an internal parameter. Is there an easier way to fix this kind of problem other than hacking the VCX?
>
>Thanks
>Simon White
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!