如何将Windows窗体应用程序中的所有表单数据保存到文件中? [英] How to save all form data from a Windows Form Application into a file?

查看:296
本文介绍了如何将Windows窗体应用程序中的所有表单数据保存到文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在.Net C#中开发客户端服务器应用程序,其中我需要存储所有数据 输入服务器窗口 到文件。数据从各种控件中选择,如下拉菜单,文本框等。并且我不知道该怎么做。

任何帮助将不胜感激...

谢谢!!!

I am developing a Client Server Application in .Net C# wherein i need to store all data fed into the Server Window into a file. The data is selected from various controls like Drop-down menu, text boxes,etc. and i am unaware of how to do this.
Any help will be greatly appreciated...
Thanks!!!

推荐答案

你好,

如果你真的必须将它保存到文件中(不是数据库),那么我会选择XML。

详细指南怎么做可以在这里找到:

http://www.dotnetperls.com/xmlwriter [ ^ ]



这应该是真的能帮到初学者。



干杯!
Hello,
If you really must save it into file (not a db), then I would choose XML.
Detailed guide how to do it can be found here:
http://www.dotnetperls.com/xmlwriter[^]

This should really give you a hand for the starters.

Cheers!


这篇关于如何将Windows窗体应用程序中的所有表单数据保存到文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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