In this article we will learn how to add an icon to your application. In this article the Application Designer takes a (.png) file that I have created using Paint.
The Application icon is stored as a resource in the application.
Note: Icon images must be .png files that are of 32 by 32 pixels.
Adding a Program Icon
In order to create the image I have used Microsoft Paint.
After creating the image in paint I click on the resize button to resize the image. When I click on the resize button a dialog box appears.
After inserting the value in the Resize Dialog Box, click "OK".
Save the Image in the folder where we want to save it.
Open the Solution Explorer in Visual Studio 2012.
In the Solution Explorer, double-click on the Properties to open the Application Designer.
In the Application Designer, click on the General Properties tab.
Click the "Select" button that is to the right of the Application icon field.
Select an image; the dialog box will appear.
In the select image dialog box click on the "Import" Button.
In the Open dialog box, choose the folder that contains the .png image files and then select an image and then click "Open".
Click "OK" to close the Select Image dialog Box.