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?
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).
Related
I created a C# application. In that application, I want to use a custom icon. I put the .ico file in the Icon and Manifest section in the Applications properties, as well as the Icon property for the form. When I run the exe from the Debug folder, the taskbar icon shows correctly. However, when I move the exe, the taskbar icon changes back to the default. What am I missing?
Update:
I tried to debug it a little and found it is just from a particular folder that I am running from that the icon does not stay. I ran it from the the Desktop, and the taskbar icon is correct. I ran it from a folder C:\Program Files (x86)\Mercury Suite\Etech Generator\EtechGenerator.exe --> does not work.
Desktop => Icon is right
C:\Program Files (x86)\Mercury Suite\Etech Generator\EtechGenerator.exe => Icon is wrong.
The system caches icons. Restart your computer to force it to refresh its cache.
I have recently finished a Visual c# project. During the process I tried multiple icons for the form and for the icon you see on your desktop. I found one that I was gonna use for both, but for some reason the icon that you see on your desktop is the old one that I used previously even though I changed it in Properties -> Application -> Icon and Manifest
Windows File Explorer uses an icon cache. You may need to clear this cache to get it to refresh.
I am facing the issue in windows 7 taskbar button. When set Taskbar Button property to "Always combine" then my winform application (developed using VS 2010) buttons appeared with default icon.
But if I set Taskbar Buttons property to "Never combine" then it appears with correct icon which I have set for my exe application.
Any idea how can I resolve this issue.. it is suppose to come with icon on combine always settings.
Regards,
Subodh
I created a windows forms application in VS 2010. Added an icon (linked to ico file directly - not through resources) to the project properties (Resources -> Icon: -> Browse). The exe used the new icon.
When changing from 'Always combine' to 'Never combine', the same thing you described happened.
I went back to the project and added the same ico file as an icon for the form. Rebuilt and the problem was gone.
It appears that when using 'Never combine', Windows 7 uses the form icon to display elements in the taskbar. While, when using 'Always combine', it uses the program's icon.
I created a Setup Project and it works in Windows 7, but no icons are shown in the shortcuts. I added the icons in the Form, in the Setup Project, in the Desktop Icon tab, in the Start menu tab and in the Add/Remove tab. I added the same icon for all the configurations...could it be a problem with the size of the icon?
Another question:
I am getting an error when I try to install it in Win XP computers...I have no messages to post in here, because my WinXP computer opens the VS2010 for debugging and the debugger has nothing to show.
I've had the same problem recently. I've tried setting the shortcut icons to the app main output icon... didn't work. Then I've set added the same icon to the application folder and set to shortcut icons to that... didn't work either. The problem was the icon size. I've generated a multi size icon on https://icoconvert.com/ and behold. All the icons show properly now. Try doing that, maybe it wil fix the problem.
For some reason, a very old version of my icon keeps showing up when my application is dropped on the desktop. In the windows explorer (in all zooming levels) the icons is correctly the assembly icon. I specified the correct item in both XAML Window.Icon and in the project settings.
I have deleted the old version of my icon from all folders I can think of, but it still shows up. Also while drag and dropping, the wrong icon is shown. (in the slightly transparent preview window)
I tried cleaning and rebuilding, I tried deleting the obj folder manually...
The original, wrong icon was 16x16. I have built the new version as 32x32, because on the desktop 16x16 is too small.
According to the msdn docs (http://msdn.microsoft.com/en-us/library/system.windows.window.icon.aspx), each .ico file is supposed to incorporate all smaller sizes anyway.
I also checked that I changed the icon for both debug and release configuration.
Thanks for any ideas! :)
Could this be a problem with the IconCache? Try deleting %localappdata%\IconCache.db and restarting Explorer.exe.
Check the Visual Studio properties window for the EXE's project -- you can specify the icon that's written into the EXE at compile time. This is separate from the icon that's assigned to the XAML window at run time.