Set application icon from resources in VS 05

后端 未结 2 1350
闹比i
闹比i 2021-01-20 05:37

I know I can add a icon to the Resources.resx file of a project and then reference that icon from within the code.

How do I set the icon of the entire EXE from the r

相关标签:
2条回答
  • 2021-01-20 05:52

    One solution I always use to prevent duplicate file references, is to create a solution folder such as "Project Dependencies". And then all refereces are made from that folder, so when building it pulls from the Project Dependencies folder.

    This would work for resource files also, just copy them to the solution folder first and then drag them into your resource.

    And for the assembly icon, just browse to the Project Dependencies folder as well.

    Good Luck!

    0 讨论(0)
  • 2021-01-20 06:14

    The way that the adding of an application icon is that you must select it from the local file system, and then it is embedded into the application at build time. As far as I know it is not possible to have it first pull from a resource file.

    0 讨论(0)
提交回复
热议问题