resource manager

  • Thread starter Thread starter frazer
  • Start date Start date
F

frazer

What is the advantage of creating an icon using the resource editor?
and then using ResourceManager and getObject to get an icon.

System.Resources.ResourceManager resources = new
System.Resources.ResourceManager("Image",
System.Reflection.Assembly.GetExecutingAssembly());
Bitmap[] images = new Bitmap[]{
((Icon)resources.GetObject("Icon1")).ToBitmap(),
((Icon)resources.GetObject("Icon2")).ToBitmap()
};

thnx
 
Once you compile your Assembly the icons will travel inside the .dll.
Fewer files to carry around. More difficult to steal your icons
(although yes, barely more difficult for someone who knows what they're
doing).

DC
 

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

Similar Threads


Back
Top