Shared resources between programs possible?

  • Thread starter Thread starter Don
  • Start date Start date
D

Don

Is it possible to bundle a bunch of images together in a file so that two or
more programs can access them? If so, how would one go about creating this
file and how would the programs access it?

- Don
 
Don,
I would create an new Class Library Project. Add all the images to the
project as Embedded Resources.

To limit the amount of 'duplicate code' in each referencing project, I would
create an 'ImageManager' class that would have one or two shared methods on
it to load & return the images from the assembly. This ImageManager would be
part of this new Class Library Project.

All the other projects would reference this class library & call the above
shared method.

I would use System.Resource.ResourceManager to load the images.

Hope this helps
Jay
 
Back
Top