如何在C#中保存项目 [英] How to save project in C#

查看:525
本文介绍了如何在C#中保存项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,

我正在VS 2008中使用Windows窗体开发实用程序.

在这里,我有一个名为保存"的按钮.
单击保存"按钮后,应保存整个项目.
我该如何编码?

例如,我们有NERO软件.
刻录CD后,窗口要求将项目另存为图像文件.如果保存此文件,则可以再次打开相同的文件/文件夹进行刻录.

这样,我需要在处理后保存我的项目.

请告诉任何人如何解决此问题.

谢谢

有人可以向我建议一些示例代码吗?

Hi Sir,

I am developing a Utility using Windows forms in VS 2008.

In this I have a button called Save.
After Clicking the Save Button the entire project should be saved.
How can I code this?

For example we have NERO Software.
After burning the CD, the window is asking to save the project as an image file. If we save this one, again we can open same files/folders to burn.

Like that, I need to save my project after the processing.

Please tell anyone how to solve this.

Thank you

Can anybody suggest with me with some sample code...

推荐答案

这是一个大话题.

您需要将变量和所有所需的内容保存在hardrive上的文件中.
可能是XML文件或txt或其他任何内容.

然后,您必须在启动或LoadFile事件时从该文件获取所有信息,然后重新创建存储的信息.
It is a big topic.

You need to save variables and all you need in a file on your hardrive.
maybe XML file or txt or whatever.

Then you have to get all info from that file on startup or LoadFile Event and recreate stored information.


这篇关于如何在C#中保存项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆