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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With