Aracılığıyla paylaş


How to: Specify an Application Icon (Visual Basic, C#)

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

The Icon property can be accessed in the Application pane of the Project Designer; it contains a list of icons that have been added to a project either as resources or as content files.

To specify an application icon

  1. With a project selected in Solution Explorer, on the Project menu click Properties.

  2. Select the Application pane.

  3. Select an icon (.ico) file from the Icon drop-down list.

To specify an application icon and add it to your project

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Select the Application pane.

  3. Select <Browse...> from the Icon drop-down list and browse to the location of the icon file that you want.

    The icon file is added to your project as a content file.

See Also

Tasks

How to: Add or Remove Resources

Other Resources

Managing Application Properties