Visual Studio 2017 - Specify Application Icon

I am trying to add my icon as the default app icon in my Visual Studio project. Microsoft documentation allows you to click on Project โ†’ Project Properties and then select the Application tab in Designer .

When I click Project โ†’ Project Properties , it is not the Project Designer that appears , but (project name) Property Pages . As you can see in the photo below, there is nothing even remotely related to the Application tab.

Image of project property pages

How do I add an icon as the default app icon?

+3


source to share


1 answer


There is a file .rc

that is generated automatically when an icon is added to project resources through these instructions.

There is a comment in this file that directly answers the question.

// The icon with the lowest id value placed first to provide the app icon

// remains consistent across all systems.



After this comment, all icons are displayed and as expected the one with the lowest ID becomes the app icon.

Note. Sometimes when running the executable in VS, the icon is not displayed in the toolbar.

0


source







All Articles