Saving application specific save files C# visual studio

不打扰是莪最后的温柔 提交于 2019-12-11 05:05:27

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/5828929/saving-application-specific-save-files-c-sharp-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!