Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I have created a application i.e Notepad Application. and I want to save it using my own extension, that i have done it. now what I want to do is that when I save my file with my extension the icon should be set. for eg. when you save any microsoft word file the icon is set where ever the file is saved.
Another work is when ever I try to open the file created from my application, then after you right click the file it should show the option in the "open with" section.
Thanks in Advance!!! :)
Posted

1 solution

Well...

It is very easy to have custom ICON for your files. Just you need to register the file type.

.NET Installer setup have this facility and it works great.

Another thing, if you want to use Double click to open your application for that particular file you can also do this easily.
Just you need to change some registry keys and you are done.

See how I did that in my application :
Folder protection for windows using C# & Concepts on Windows Shell menu for Folders[^]

I hope this will help you.

Cheers. :cool:
 
Share this answer
 

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