See if this helps.... (from earlier posts)
I've confirmed an error with the serialization of icons in the resource
file of an application.
What is happening is that the entire imagestream of an imagelist is not
serialized, just each individual bitmap and the fact that its an icon is
lost during this serialization.
The workaround has been posted earlier by Jeff Jackson. It is to load the
icon file embedded in the resources directly. As in:
this.m_imageList.Images.Add(new
Icon(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceSt
ream("MyApp.myicon.ico")));
this.m_imageList.ImageSize = new System.Drawing.Size(16, 16);
Let me know if you have a problem with this.
-Ben
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Lloyd Dupont" <net.galador@ld>
| Subject: app icon
| Date: Wed, 27 Aug 2003 11:15:13 +1000
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 61.95.54.83
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:32098
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| my app icon is not transparent !
| it's the same I use for a tool bar, and its transparent color is paint as
| intended.
| but in the explorer all transparent area are black !
|
| it's a 16x16X16 icon (16 colors, 16 square pixels)
|
| what can be wrong ?!
|
|
|