Search code examples
c#winformsfavicon

C# Winform Desktop icon refuse to change on a particular computer


I am trying to change my application's icon.

1) I have changed the icon on the form by going to form-->properties-->Icon

2) I have also changed the Icon on the project by going to Project--> properties--> Application-->Icon and Manifest.

But my Icon still didn't change, I have restarted my computer but no success. I finally used another computer and the new icon appear. So my question is does anyone know whats happening?


Solution

  • I had the same issue on my computer. I believe it's caused by the icon cache in Windows.

    What I usely do is removing the icon, cleaning up the PC (with CCleaner), then, add the icon.

    Or you can just delete /Documents and Settings/<username>/Local Settings/Application Data/IconCache.db (Windows XP) or /Users/<username>/AppData/Local/IconCache.db (Windows 7).