Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 - Specify an App Icon

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?

like image 940
iamfrank Avatar asked Jul 21 '17 21:07

iamfrank


People also ask

How do I add an icon to a button in Visual Studio?

create an image. set the source of the image to the right file of your resources (e.g. a . png file that you included to your project) drag the image over the button. A text shows that asks you to press ALT to replace the text of the button with the image.


1 Answers

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.

like image 70
iamfrank Avatar answered Oct 07 '22 21:10

iamfrank