Click here to Skip to main content
15,908,768 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I set an icon file for my app in project properties before and now when I change the icon, after getting release exe I click change view in explorer and for big view the old icon is shown. I think the old icon is still in my project. how can I remove the old icon from my project completely?
I want to replace the new icon completely.

Thanks
Posted
Comments
Wjousts 19-Jul-11 10:59am    
Is it possible that it's your Windows icon cache not your application that is causing the problem? Try forcing Windows to rebuild the icon cache first (Google for how to do it) and see if that fixes your problem

from MSDN:

http://msdn.microsoft.com/en-us/library/system.windows.window.icon.aspx[^]

To cater to the various display sizes, an icon file is composed of one or more actual icons where each one represents a version of the icon that targets a specific size and color depth. For example, one icon may only have a single 16x16 pixel icon with 16 colors, while another may contain 16x16 pixel and 32x32 pixel icons with both 16 colors and 256 colors.
If icons for all possible sizes and color depths exist within an icon file, Window will use the appropriate icon. If an icon file contains only a subset of all the possible icons, Window uses the next most appropriate icon in order of decreasing sizes and color depth.
 
Share this answer
 
v2
If you are in VS2010,,Just follow my instructions:

Click on "Project" menu.
Click on "Application" (Left top corner)
Select the radio button "Icon and manifest"
Now just change the default Icon.
Now you are done.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900