G
Guest
Right now i have embedded an icon file in my project with 6 different
individual icons in it. I currently use
Bitmap icon = new Bitmap(this.GetType(), "App.ico");
to load in the icon but it will only work on the first icon. I've stumbled
upon a class called MultiIcon
(http://www.codeproject.com/dotnet/MultiIcon.asp) which allows you to select
an individual icon. My problem is how to load the resource into this class.
I've added my own constructer in which you can pass a MemoryStream (which is
what the class uses to read the Icon) but i'm unable to get my icon file into
a MemoryStream. I attempted to create a binary formatter and then serialize
it but I kept getting ArgumentNullExceptions in mscorlib.dll. Any help on
this is greatly appreciated.
individual icons in it. I currently use
Bitmap icon = new Bitmap(this.GetType(), "App.ico");
to load in the icon but it will only work on the first icon. I've stumbled
upon a class called MultiIcon
(http://www.codeproject.com/dotnet/MultiIcon.asp) which allows you to select
an individual icon. My problem is how to load the resource into this class.
I've added my own constructer in which you can pass a MemoryStream (which is
what the class uses to read the Icon) but i'm unable to get my icon file into
a MemoryStream. I attempted to create a binary formatter and then serialize
it but I kept getting ArgumentNullExceptions in mscorlib.dll. Any help on
this is greatly appreciated.