You just need to add a Resource File to your ClassLibrary project.
Open the resources designer (just double-click on the resx file) and change
the 'Access Modifier' property in the designer (located on the top of the
designer-you have a combo box and you can switch from private to public).
Then Add a reference to your classlibrary from your windows forms app and
you can code something like this:
pictureBox1.Image = ExternalResources.Image1;
(assuming you have declared the 'using' reference).
Frédéric Queudret
CTO Mpoware
http://www.mpoware.com/
"Fred" <fo*****@free.fr.invalidwrote in message
news:Oc**************@TK2MSFTNGP03.phx.gbl...
Hello,
I created a class library project to store my images resources.
In another project (windows app) I just want to set an image for a
toolstripbutton.
Where can I write this simple line of code :
ToolStripButton1.Image = ExternalResource.ButtonImage
So that I can see the image in design mode ? And so that Visual Studio
won't create a copy of my image in the form's resx file ?
--
Fred
fo*****@free.fr