D
Danyel Meyer - dialog-it GmbH
Hallo group!
I just had the idea to put some images into a class library that should just
expose an ImageList object to an application that needs to load images from
it.
My thought was to embedd the images to a DLL and fill an ImageList object
with them, but I can´t figure out how to do that.
I have tried to load an image into my class library project as an "embedded
ressource", but then I have difficulties adding it to the ImageList, because
I don´t find a possibility to cast a file stream to an image.
Another solution would be to use a ressource-file, but here I can´t find out
how to add images to such a file.
I was not able until now to find any example code that works for me.
Any idea on how to do this? Or maybe any solution I have not thought about
yet? Although VB.NET would be quite nice, I should be able to understand C#
as well
Many thanks in advance,
--
Danyel Meyer
-------------------------------------------
dialog-it GmbH
Röllinghäuser Strasse 55a
31061 Alfeld/Leine
Tel +49 (0) 5181 900 814
Fax +49 (0) 5181 900 815
E-Mail (e-mail address removed)
I just had the idea to put some images into a class library that should just
expose an ImageList object to an application that needs to load images from
it.
My thought was to embedd the images to a DLL and fill an ImageList object
with them, but I can´t figure out how to do that.
I have tried to load an image into my class library project as an "embedded
ressource", but then I have difficulties adding it to the ImageList, because
I don´t find a possibility to cast a file stream to an image.
Another solution would be to use a ressource-file, but here I can´t find out
how to add images to such a file.
I was not able until now to find any example code that works for me.
Any idea on how to do this? Or maybe any solution I have not thought about
yet? Although VB.NET would be quite nice, I should be able to understand C#
as well
Many thanks in advance,
--
Danyel Meyer
-------------------------------------------
dialog-it GmbH
Röllinghäuser Strasse 55a
31061 Alfeld/Leine
Tel +49 (0) 5181 900 814
Fax +49 (0) 5181 900 815
E-Mail (e-mail address removed)