Vb.net – application icon image doesn’t show in taskbar in “small icon” setting

vb.net

I have a vb.net 2008 application which has its corresponding icon.
The icon shows correctly except in the taskbar when the "small icon" setting is on.

My vb.net project includes a .ico file which when I see in the IDE includes 16×16, 32×32, 48×48, 64×64 and 256×256 bitmaps, in 4, 24 and 32 bits, also 3 .png images in 256×256 32 bits each.

I made the icon myself simply using a 64×64 bitmap and then converting it to .ico, and assigning it to the application in the project properties. I thought windows would use and escalate the corresponding image, it shows even in the file explorer properly in the small icon form, but not in the taskbar.

What's going on or what do I need to do? I'm not very familiar with this. Thanks…

Best Answer

You need to have the correct size/bit-depth version in your icon file for whatever context WinForms wanted (e.g. the form's title bar icon, the system tray icon, the taskbar icon, or the desktop shortcut icon) to insure it will work. You have to maintain the transparency too.

Read the following article.

Related Topic