Add an image to a dll
Posted on 2005-05-12
I have a dll component which will be used by a large number of webprojects.
This dll component contains some WebControls that will be rendered to the page, including ImageButtons.
Now, what I want is that I do not have to copy a directory containing the images for the ImageButtons to every webproject that will use my dll component.
I know that you can embed images as a resource in your project, but as far as I can tell, that only goes for Btimap objects which you can load using a stream, not for ImageButtons that will look for a path.
So in short, I want to be able to add a reference to the dll component from a webproject, and that the images for my imagebuttons will still be found.
How do I do this? Is this possible?