7

I'm trying to add my icon as the default application icon in my Visual Studio project. The Microsoft documentation says to click on Project -> Project Properties, and then select the Application tab in the Project Designer.

When I click on Project -> Project Properties, what comes up is not the Project Designer, it's (Project Name) Property Pages. As you can see in the photo below, there is nothing even remotely related to an "Application" tab.

Image of Project Property Pages

How can I add my icon as the default app icon?

Raphael
  • 441
  • 1
  • 6
  • 12

1 Answers1

2

There is a .rc file that is generated automatically when an icon is added to the resources of the project via these instructions.

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

// Icon with lowest ID value placed first to ensure application icon

// remains consistent on all systems.

Following this comment are all the icons, and as expected, the one with the lowest ID becomes the application icon.

Note: Sometimes when running the executable within VS, the icon will not show up in the toolbar.

Community
  • 1
  • 1
Raphael
  • 441
  • 1
  • 6
  • 12
  • 2
    These instructions are obsolete, not valid anymore - at least for VS 2017 – Alex Fainshtein Jan 21 '19 at 04:11
  • The instructions worked for me (Visual Studio 2019, on Dev 202. It was correct that the app icon does not show up in the task bar in VS, but does show up if you rune the .exe directly. – Richard Keene Dec 06 '21 at 21:18