Custom extention in C#
-
I have developed application in c#. which save data in xml. but i don't want to show xml file to user. so i want to put custom file with custom extention(e.g .abc), and when user double click that file then my application will start and load xml file in my own application. How i can implement this. (my requirement is like microsoft word. when we double click on abc.doc then microsoft word load abc.doc) Thanks
-
I have developed application in c#. which save data in xml. but i don't want to show xml file to user. so i want to put custom file with custom extention(e.g .abc), and when user double click that file then my application will start and load xml file in my own application. How i can implement this. (my requirement is like microsoft word. when we double click on abc.doc then microsoft word load abc.doc) Thanks
You need to register your custom extension with the Shell. Refer to the 'Integrating with the Shell' topic in the following article: Creating Document-Centric Applications in Windows Forms, Part 2[^]. Roger Stewart "I Owe, I Owe, it's off to work I go..."