0

Okay, so here is the deal, i initially set my icon when i first created my project. However i have since changed it the application properties, and in the form properties as always, however when i build the application and move the exe from the bin folder to my desktop, it changes to the previous icon. If i leave it in the bin folder and create a shortcut, the shortcut reverts to the old icon as well. Im wondering what exactly might be causing this. I have also removed the old icon from the references to no avail. If anybody knows what this issue might be i would really appreciate a some advise.

tshepang
  • 12,111
  • 21
  • 91
  • 136
user3691826
  • 13
  • 1
  • 3

3 Answers3

1

So here's the trick:

  1. Go to C:\Users\AppData\Local\
  2. Delete IconCache.db
  3. Kill explorer.exe from task manager
  4. Again start explorer.exe

It will work, you will see your new icon when you copy/move next time.

Manas
  • 11
  • 1
0

I'm not sure, but if you had copied the exe file with previous icon to your desktop before, maybe windows has cached your icon. To test this copy your exe file to another loacation or reset your system.

Ali Sepehri.Kh
  • 2,468
  • 2
  • 18
  • 27
0

Hi friend I have the same problem but finally I solved it.

What you have to do is return the icon that windows puts you by default and delete the .ico reference of your project. Once you did that, you rebuild the solution both in the project and in the solution, and save it.

Then you open the .exe and copy it to the desktop, and you make sure that the icon that was by default has returned.

Then you return to the project and put the new icon and rebuild the solution and the project, and save it.

Manuel
  • 1