Set application icon from resources in VS 05

后端 未结 2 1369
闹比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!

提交回复
热议问题