Thursday, November 29, 2012

Adding a Custom Icon to C# Windows Application and Forms

C# Windows applications, by come with the default Application icon, many a times we will want to change the default icon to one which suites the type of application, in this post we shall see on how to change the default icon and set a custom icon.

1. Open the Windows Application project in Visual Studio.
2. Open the Project Properties.
3. In the Applications tab, Under the resources section, browse and select the custom icon file.




4. We can create our icon file, by adding a new icon file to the project, to do so add a new item to the project of type Icon File.


5. Once added, we can draw the custom icon and set it in the project properties.
6. There will be 2 versions of the icon, 16 x 16 & 32 x 32, make sure that you draw the icon in both the versions.
7. We can set custom icons to Individual forms by setting the Icon property of the file to the custom icon file.

3. In the Applications tab, Under the resources section, browse and select the custom icon file.


Search Flipkart Products:
Flipkart.com

No comments: