开发者

Specify Icon for Windows Application using Visual Studio 2008 - Beginner's Question

开发者 https://www.devze.com 2023-01-24 15:15 出处:网络
I am building a Windows Application using Visual Studio 2008. For the forms (2 of them), I have specified icons.

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

  1. I create a Shortcut to the Primary Output of my Application (the executable). Link here.
  2. I cut/paste it to the User's Desktop under the File System on Target's Machine. Link here.
  3. 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.

Specify Icon for Windows Application using Visual Studio 2008 - Beginner's Question


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号