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.
Related
I made a WPF application (.net core 3.1) and then towards the end I wanted to change the icon, as usual I opened the properties>application and loaded my icon. But it doesn't change anything... remains the same default icon.
The size of my icon is 256x256 and obviously has an .ico format. I tried to delete the folder where the executable is located and to build again, I also tried to run the application without debugging mode, but nothing. I noticed, however, that the main window when you change the Icon attribute updates the window icon. But nothing to do for the .exe file.
Does anyone know how to solve this problem?
P.S. I don't think it's the icon the problem because I tried to load another icon that I used in the past with another WPF application
Right click on your solution in Solution Explorer and click on "Rebuild Solution" or "Clean Solution" followed by "Build Solution".
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.
I have a WPF Browser Application consisting mostly of wpf pages which I'm developing in Visual Studio 2010.
I'm publishing the app to the intranet, with ClickOnce at full trust.
Is there any way to have an icon for the pages in this type of application? (which would show instead of the internet explorer icon in each of the tabs of Internet Explorer), I'm executing it through PresentationHost.exe.
What I'm trying to do, is to have a desktop shortcut with a custom icon for each part of the application (two different projects in the same solution).
If there isn't a way to do it with XAML, is there any way to run any commands or a batch file at the moment of accepting the ClickOnce prompt?, to place the shortcuts in the desktop with their respective icons at the moment of installing the application.
Thanks in advance, Jesús.
P.S: I know my redaction skills suck, so if any more details are needed, let me know.
If you open your project file and change the HostInBrowser setting to false, and this will enable the ability to provide an Icon and Manifest in the project's properties.
<HostInBrowser>False</HostInBrowser>
I am not sure how that will affect your app though. Maybe this setting is supposed to be "True" to work how you need it to work.
Did you set the icon for each project, in VS right click on the project - properties - Icon and manifest - click the icon button ...
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.