Specify Icon for Windows Application using Visual Studio 2008 - Beginner's Question
I am building a Windows Application using Visual Studio 2008. For the forms (2 of them), I have specified icons.
Now, I build the Setup by adding Setup and Deployment Project to my solution. In properties of the Setup and Deployment Project, I specify the Icon.
Then I do the following
- I create a Shortcut to the Primary Output of my Application (the executable). Link here.
- I cut/paste it to the User's Desktop under the File System on Target's Machine. Link here.
- To the properties, I add the Icon
Now, in the Add/Remove Programs, I have the icon. In the Desktop, I have the icon. But the actual executable file still comes with the standard exe icon.
How can I开发者_运维知识库 have my icon for the actual executable also?
Open up your project's properties to the Application page.
Under the Resources frame you can change the Icon from the default icon to an icon in your resources or you can browse for an icon on your machine.
In VS2008 menu, go to "Project > [Project_Name] Properties... > Application". In the "Resources" groupbox, select the icon in the field below "Icon and manifest". Compile.
精彩评论