1

I have created an application in C# with visual studio. The application has a Save dialog box which saves to an xml file and a Load dialog box which loads the xml data into the application.

This all works well but what I really want to do is when the application saves the file it creates an application specific file that if the user double clicks it, it will open the application and load the data into it kinda like if you double click a .psd file it will open photoshop and load the file.

Any help would greatly be appreciated!

Thanks so much, Airlok

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
Jebanisa
  • 111
  • 2
  • 15
  • possible duplicate of [How to associate a file extension to the current executable in C#](http://stackoverflow.com/questions/69761/how-to-associate-a-file-extension-to-the-current-executable-in-c) – Binary Worrier Apr 29 '11 at 07:07
  • 1
    Just make sure you do save it with an application specific extension and not .xml. Otherwise you will end up associating all .xml files with your application. – ChrisWue Apr 29 '11 at 07:18

1 Answers1

1

You could save the file with a custom extension and register it. See this question.

Community
  • 1
  • 1
Daniel Rose
  • 17,233
  • 9
  • 65
  • 88