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
 
Back
Top