Hi Simon,
The only way to control the order of instanciation in the designer(s) at this point is to use the 'Bring To Front' and 'Send to back'.
A control sent to the front is the last to be instanciated, a control sent to the back is the first.
Hopefully there will be better control over this in a future version of VFP.
>Hi
>
>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
kenweber
GCom2 Solutions
Microsoft Certified Professional