Change default icon

前端 未结 9 1533
南方客
南方客 2020-12-15 16:43

I\'m trying to change the application icon from default to something else. So what I did, is I made an icon and saved it. Then I went to the application tab in the property

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 17:06

    Run it not through Visual Studio - then the icon should look just fine.

    I believe it is because when you debug, Visual Studio runs .vshost.exe and not your application. The .vshost.exe file doesn't use your icon.

    Ultimately, what you have done is correct.

    1. Go to the Project properties
    2. under Application tab change the default icon to your own
    3. Build the project
    4. Locate the .exe file in your favorite file explorer.

    There, the icon should look fine. If you run it by clicking that .exe the icon should be correct in the application as well.

提交回复
热议问题