C# – Changing the icon of the taskbar

ciconstaskbarwinforms

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 16×16 and 32×32 but both didn't work.

Best Answer

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.

Related Topic