Sharing an ImageList

  • Thread starter Thread starter Laurent
  • Start date Start date
L

Laurent

Hello,


I'm programming an application with different forms in it. Two of them
have TreeViews using ImageLists to display icons. I have defined an
ImageList on my main form, and I would like to use it as well for the
TreeView of the second form. But I can't find a way to tell the Design
Editor to use the ImageList of the main form, even if my child form has a
pointer to the main form and the ImageList is declared as public.

Is there a way to do this ? I hope I've been clear enough...

Thanks...
 
Hi,

I don't think you can do it in the designer, you can do it using code
though.

cheers,
 
Back
Top