BK
Tue Jan 06 15:03:45 CST 2004
OK, using a tool that can extract the different resolutions and color depths
embedded in an ico file, it appears that if the icon file contains any
resolution or depth greater than 16x16 with 16 colors, my Windows 2000
machine will try to use those other formats, which results in the greyscale
icon. If 16x16x16 is the only format in the ico file, it will display that
one corectly with color. Strange behavior since Win 2000 can obviously
handle at least 256 color icons. Do you see any way around this?
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:OrKrRy80DHA.2572@TK2MSFTNGP12.phx.gbl...
> * "BK" <nospam@nospam.org> scripsit:
> > Doing developing under Windows XP,VS.NET 2003,.NET 1.1 Framework.
> >
> > Assign notifyIcon an icon *.ico file. Appears fine (color) in task tray
when
> > running under windows XP.
> >
> > When I run on Win 2000 test machine with .NET 1.1 Framework installed,
the
> > app runs fine but the task tray icon is greyscale, rather than color.
> >
> > Thinking it was some glitch with this particular icon, I've tried dozens
of
> > different icons (from inside shell32.dll) with the same results. Anybody
> > have any idea what this is?
>
> Which color-depths do these icons contain? Does it work with a 16 x 16
> icon with 16 colors?
>
> --
> Herfried K. Wagner [MVP]
> <
http://www.mvps.org/dotnet>