Add an image to an imageList from a ressource

  • Thread starter Guillaume Charhon
  • Start date
G

Guillaume Charhon

Hi,

I want to add an image in an imageList.
I use the VS designer to create my imageList. When I try to add an image
to it, VS open the Windows Explorer... and I want to use an image in my
ressource file.
I used the ressource designer to add the image...

Thank you for your help.
 
G

Guillaume Charhon

Thank you!

and I find how to load a ressource image :

Image image = Properties.Resources.araignee;
imageList1.Images.Add(image);

Bye!


PlatinumBay a écrit :
 

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