Specify an application icon (Visual Basic, C#)

The Icon property for a project specifies the icon file (.ico) that's displayed for the compiled application in File Explorer and in the Windows taskbar.

You can access the Icon property from the Application section of the Project Designer, which contains a list of icons that have been added to a project either as resources or as content files.

Note

After you set the icon property for an application, you might also set the Icon property of each Window or Form in the application. For information about window icons for Windows Presentation Foundation (WPF) standalone applications, see Icon property.

To specify an application icon

  1. In Solution Explorer, choose a Project node (not the Solution node).

  2. On the menu bar, choose Project > Properties.

    Tip

    You might see your project's file name when you view Project > Properties. For example, if you're working on a project that's named "Calculator", Visual Studio displays Project > Calculator Properties.

  3. The Project Designer appears. Then, in the Application section, select one of the following:

    • For C#, select Win32 Resources
    • For Visual Basic, select Resources
  4. In the Icon section, select the Browse button to browse to the location of the icon file that you want.

  1. In Solution Explorer, choose a project node (not the Solution node).

  2. On the menu bar, choose Project > Properties.

    Tip

    You might see your project's file name when you view Project > Properties. For example, if you're working on a project that's named "Calculator", Visual Studio displays Project > Calculator Properties.

  3. When the Project Designer appears, select the Application tab.

  4. In the Icon section, choose an icon (.ico) file by using either of the following methods:

    • For Visual Basic—In the Icon list, choose an icon (.ico) file.
    • For C#—Near the Icon list, select the <Browse...> button, and then browse to the location of the icon file that you want.