Sharing an ImageList

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...
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

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

cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top