John,
I'm assuming you are talking about image lists that are required for various ActiveX controls. Here's what I do in my ActiveX toolbars. In the base class of the Toolbar, create a ImageListClassName property, then in the Init() method of the toolbar, dynamically add the image list to the toolbar. This way the image list will always exist when needed at runtime. Also when designing the form, once you drop the toolbar control on the form, just specify the name of the image list class that this toolbar is suppose to use.
WITH THIS
IF .AddObject('oImageList',.ImageListClassName)
.OBJECT.ImageList = .oImageList
ENDIF
ENDWITH
Kurt
>There are activeX controls on the form that depend on other Activex controls to be in existence when they are instantiated.If not, the controls are not usable.
>
>We have tried adding the objects to the form in the order we want them to instantiate. That works for a while. But, after a while, it appears that Foxpro has reordered the objects and they stop working. Is Foxpro trying to optimize the form? If so, by what criteria?