Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
How i change Icon of any File using C#? Please give any method its urgent. Please...........help me
Posted
Updated 12-Sep-10 12:39pm
v4

Hi Sohaib,

You can do this easily by registering your filetype with icon path while installing your application with a Installer Software.

Have a look here: Create Icons for Folders in Windows Explorer, Using C#[^]. This link may help you too.
 
Share this answer
 
What do you mean change Icon of a file?
If this is a normal file, it depends on Operating System settings.

To change the default icon of an executable you can :


XML
1.  Project
2. [Project Name] Properties
3. Application
4. Icon
5. (From the Combobox select) <Browse…>


:rose:
 
Share this answer
 
Comments
H.Sohaib Ali 12-Sep-10 12:14pm    
change icon of normal files test.txt and others
H.Sohaib Ali 12-Sep-10 12:45pm    
i want to change files icon like test.txt or my spefied extention file test.ali
Check this article Custom file extension control[^]
 
Share this answer
 
If you want to add a different icon to your exe, see here[^].
 
Share this answer
 
Comments
H.Sohaib Ali 12-Sep-10 12:51pm    
i want to change icon of file programitically

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900