NotifyIcon is greyscale under Windows 2000

  • Thread starter Thread starter BK
  • Start date Start date
B

BK

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?
 
* "BK said:
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?
 
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?
 
* "BK said:
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.
 
Back
Top