philkryder
asked on
VISUAL STUDIO 2010 change icon - can't find FILE SYSTEM EDITOR
I have a VB one-click solution and project in Visual Studio 2010.
I've done some upgrades and would like to change the ICON.
It changes in "some places" (like when the app is running in the system tray.
But,
In other places (like when I do ALT+TAB) to cycle thru running applications, it still shows the old ICON.
Also, in add remove programs it shows some sort of defalt icon.
? how can I change the icon? thanks. Phil
I've done some upgrades and would like to change the ICON.
It changes in "some places" (like when the app is running in the system tray.
But,
In other places (like when I do ALT+TAB) to cycle thru running applications, it still shows the old ICON.
Also, in add remove programs it shows some sort of defalt icon.
? how can I change the icon? thanks. Phil
I don't understand your question, and the problem that you have described...
The icon can be defined in many places, depending on where its used.
For the icon used by shortcuts, it's in the project's Properties window, in the Application tab.
The icon used for TaskBar needs to be set in the Icon property of the form(s).
The Icon used in the system tray is defined as a property of the NotifyIcon component used for the systemtray.
If you mean ClickOnce instead of one-click, it is possible that you did not change the icon in the File Associations. This is done one again in the project's Properties window, in the Publish tab, under Options... File Associations.
For the icon used by shortcuts, it's in the project's Properties window, in the Application tab.
The icon used for TaskBar needs to be set in the Icon property of the form(s).
The Icon used in the system tray is defined as a property of the NotifyIcon component used for the systemtray.
If you mean ClickOnce instead of one-click, it is possible that you did not change the icon in the File Associations. This is done one again in the project's Properties window, in the Publish tab, under Options... File Associations.
ASKER
Sorry for the delay. Those seemed to work.
There is one more though that I'd like to know.
? where do I set the ICON shown in
Control panel
Programs and Features
?
There is one more though that I'd like to know.
? where do I set the ICON shown in
Control panel
Programs and Features
?
The Control Panel uses the same one that you define for the shortcuts, that is the one in the Application tab of the project's Properties window.
If you do not get it, it is probably because the application was previously installed and was not uninstalled. You still get the icon that was there on the first install. Simply uninstall and reinstall to get the new one.
If you do not get it, it is probably because the application was previously installed and was not uninstalled. You still get the icon that was there on the first install. Simply uninstall and reinstall to get the new one.
ASKER
>> The Control Panel uses the same one that you define for the shortcuts, that is the one in the Application tab of the project's Properties window.
any other reason why that might not work?
I did the uninstall and then re-install, but, didn't get the new icon...
any other reason why that might not work?
I did the uninstall and then re-install, but, didn't get the new icon...
ASKER
this is old - 2005
http://social.msdn.microsoft.com/Forums/en-US/f00e1051-f3ef-46e1-b034-e82f14dc1444/application-icon?forum=vbide
but doesn't explain how to set the iconFile attribute in the .exe.manifest file.
I tried the sugges in the properties but it didn't help.
...
To have a custom icon displayed in your ClickOnce application the icon must be deployed with the application and the file must be specified as the value for the iconFile attribute in the .exe.manifest file.
In Visual Studio, this should be as easy as selecting the icon file for the Icon on the Application Property Page. (The icon file must be part of the main project.)
If the Build Action of the icon file is Embedded Resource, everything should just work. Visual Studio will automatically deploy the icon file separately and reference the icon file in the .exe.manifest file. It is a limitation of the ClickOnce runtime that the icon file must be deployed separately and not part of a resource dll.
If the icon file Build Action is Content and the Publish Status of the icon file on the Application Files Dialog (off the Publish Property Page) is Include, then everything should be okay.
If the icon file Build Action is set to Compile or None, it will not be deployed with the application and will not show up in the Start Menu when the application is installed.
I hope this information helps you solve your problem. Please let me know if it does not.
Regards,
Elizabeth Maher
VB Team
http://social.msdn.microsoft.com/Forums/en-US/f00e1051-f3ef-46e1-b034-e82f14dc1444/application-icon?forum=vbide
but doesn't explain how to set the iconFile attribute in the .exe.manifest file.
I tried the sugges in the properties but it didn't help.
...
To have a custom icon displayed in your ClickOnce application the icon must be deployed with the application and the file must be specified as the value for the iconFile attribute in the .exe.manifest file.
In Visual Studio, this should be as easy as selecting the icon file for the Icon on the Application Property Page. (The icon file must be part of the main project.)
If the Build Action of the icon file is Embedded Resource, everything should just work. Visual Studio will automatically deploy the icon file separately and reference the icon file in the .exe.manifest file. It is a limitation of the ClickOnce runtime that the icon file must be deployed separately and not part of a resource dll.
If the icon file Build Action is Content and the Publish Status of the icon file on the Application Files Dialog (off the Publish Property Page) is Include, then everything should be okay.
If the icon file Build Action is set to Compile or None, it will not be deployed with the application and will not show up in the Start Menu when the application is installed.
I hope this information helps you solve your problem. Please let me know if it does not.
Regards,
Elizabeth Maher
VB Team
ASKER
I was wrong.
it specific here that the .exe.manifest will reference the ICO - mine does, but still uses a generic icon in control panel.
If the Build Action of the icon file is Embedded Resource, everything should just work. Visual Studio will automatically deploy the icon file separately and reference the icon file in the .exe.manifest file.
it specific here that the .exe.manifest will reference the ICO - mine does, but still uses a generic icon in control panel.
If the Build Action of the icon file is Embedded Resource, everything should just work. Visual Studio will automatically deploy the icon file separately and reference the icon file in the .exe.manifest file.
ASKER
help please - I'm still getting a generic icon on the control panel.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks!