Share via


Adding an Icon

In this lesson, you will learn how to add a program icon to your application.

Adding an Icon

Most applications provide a program icon that appears next to the name of the application in the Start menu, on the taskbar, and elsewhere.

To add a program icon

  1. In Solution Explorer, double-click Properties to open the Application designer.

  2. In the Application Designer, click the General Properties tab.

  3. Click the Select button to the right of the Application icon field.

    The Select Image dialog box appears.

  4. In the Select Image dialog box, click Import.

  5. In the Open dialog box, locate a directory that contains .png image files, and then select any image and then click Open.

    Note

    Icon images must be .png files that measure 32 by 32 pixels.

  6. Click OK to close the Select Image dialog box.

Closer Look

In this lesson you learned how to add images to the application. The Application icon property takes a Portable Networks Graphics (.png) file that you can create by using Paint or another graphics program. The icon appears in the Start menu, in the taskbar when the application is running, and anywhere else that a program icon can appear.

The Application icon is stored as a resource in the application. The same image resource can appear in many places in the application.

Next Steps

In the next set of lessons you will learn enable authentication and authorization in your application.

Next lesson: Enabling Authorization and Creating Permissions

See Also

Tasks

How to: Manage Application Settings

Concepts

Changing Application Settings