Changing the executable icon of the game for Windows
substance
If you create a game for Windows with XNA, the game's executable icon defaults to something like the one on the right.
I think there are many people who want to change this icon, so I will explain the procedure for changing the icon.
By the way, you can change this icon for games for Windows. On Xbox 360 and Windows Phone, the changes don't make sense.
To change the icon of an executable file, open the icon file ". ico" is required. Let's create and prepare it in advance.
To create icons, we recommend "@icon Converter" or "IcoFX".
Once you have the icon, open the project and double-click Properties from Solution Explorer to open the Properties screen.
Once you have opened the properties screen, click on "Applications" from the left tab. The "Icon" item in the "Resources" in the center of the screen is the place to specify the icon file that will actually be used as the executable file.
You can add an icon file by clicking the "..." button in the red circle on the right. (You can add multiple icons to a single project.) However, only one icon can actually be applied to the executable file.)
When you click the button, the file selection dialog as shown in the figure opens. Go to the dialog box with the icon file you want to add.
When you find the icon file, double-click it, or with the file selected, click the "Open" button at the bottom right of the dialog to open it.
When the icon file is opened, it will look like the one on the right, and you can see that it is loaded. Now you're ready to go.
You can see that an icon has also been added to the project. Once confirmed, let's build it once.
By the way, the selected icon file is copied to the project, so deleting the icon file from the project will not affect the original file.
Now, let's run the program. You can see that the icon is applied to the upper left corner of the window.
You can see that the icon that was loaded is also applied to the created executable file.
If you're developing on Windows Vista or Windows 7, you can apply a 256-pixel icon, so you can display it as an oversized icon like the one on the right.