Hi all,

I'm currently working on an ActiveX control that would need an ImageList as a property, just like in the case of TreeView or ListView. I seem to have some problems around the implementation, though.

I can't have a property of ImageList type, since you can't expose controls directly in your custom ActiveX control (ie I get an error message if I try doing that).

Now, what's the solution for that? Can I have an array of ListImages as a property then? But, where do I store the members of the array?

I have a similar problem if I try adding a property that holds several members ie an array. For example, my control is somewhat similar to a grid, with the exception that it creates a dynamic array of Label controls displaying the rows. But whenever I try to create the array of Label controls dynamicly in the Initialisation section, I lose the values storing the row captions and all the labels will have the same caption as the first one.

I might not be very clear here, so if you need, I can send some snippets from the code.

Can anybody please help?

Thanks in advance,
Req