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?

Re: NotifyIcon is greyscale under Windows 2000 by BK

BK
Mon Jan 05 13:30:17 CST 2004

Additional info,

both machines are running the same (16-bit) color depth.

"BK" <nospam@nospam.org> wrote in message
news:%23OV0pD80DHA.1744@TK2MSFTNGP12.phx.gbl...
> 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?
>
>



Re: NotifyIcon is greyscale under Windows 2000 by hirf-spam-me-here

hirf-spam-me-here
Mon Jan 05 14:43:07 CST 2004

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

Re: NotifyIcon is greyscale under Windows 2000 by BK

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>



Re: NotifyIcon is greyscale under Windows 2000 by hirf-spam-me-here

hirf-spam-me-here
Tue Jan 06 15:08:35 CST 2004

* "BK" <nospam@nospam.org> scripsit:
> 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?

You can check 'System.Environment.OSVersion' and provide two different icons.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>