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