Home > C# > Visual C# Note: Set Icon of Compiled .exe File

Visual C# Note: Set Icon of Compiled .exe File

The default icon for compiled .exe files in Visual Studio 2005 is the boring blank window icon. However, you can create a cool-looking icon and assign it to your compiled .exe file. Here is how to do it:

  1. In the “Solution Explorer”, right click your project name and select “Properties”. The “Properties” window will open.
  2. In the “Properties” window, select the “Application” tab. Click the “…” button on the right of the “Icon” dropdown box to select the icon file you created for your .exe file.
  3. Build the project then you will have a .exe file with your nice-looking icon -:), like “Tetris.exe” in Figure 1.
Exe File with Nice Icon
Figure 1. “Tetris.exe” has a customized icon while “Tetris.vshost.exe” has the default icon.
Categories: C# Tags:
  1. No comments yet.
  1. No trackbacks yet.