C# - Changing the icon of the taskbar

loomie picture loomie · Mar 6, 2013 · Viewed 46.9k times · Source

I want to change the icon on the taskbar of my software, so I changed the project settings. This path was suggested by Visual Studio itself

Path to the icon

But my taskbar still shows the same icon as before (the standard one) - In my Explorer the .exe has the correct icon, it just won't change in the taskbar.

I also tried to end explorer.exe and restart the task, but this didn't help at all. I also tried to set the resolution on 16x16 and 32x32 but both didn't work.

Answer

Joey picture Joey · Mar 6, 2013

You need to give your form that icon as well. The application icon is the one that is embedded in the application and displayed in Explorer or on shortcuts. Each form can have its own icon, though.