按原样保存表单 [英] Save the form as it is

查看:72
本文介绍了按原样保存表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用c Sharp开发的Windows应用程序,并生成了一个exe文件.它具有丰富的文本框和按钮.它具有文件菜单,其中存在``保存''下拉菜单项.任务完成后,我需要使用文本框,按钮以及数据来保存表单.当我打开保存的表单时,它应该与之前的表单完全一样,但有最新的修改.

I have an windows application developed in c sharp and generated an exe file. It has richtextboxes and buttons.It has a file menu, in that ''save'' drop down item is there. After completion of task, I need to save the form as it is with textboxes and buttons and also with data. When I opened the saved form it should resemble exactly as the form before with latest modifications.

推荐答案

您需要确定序列化格式,并编写代码以存储所有您的数据,以及用于读取文件并将其放回富文本框等的代码.
You need to decide on a serialisation format, and write code to store all your data, and code to read your file and put the data back in to the rich textboxes, etc.


请参见
see article over here [WinForm Application].
it has functionality to remember password.
which stores the username and password in XML file and getting it back when user re-login in to application.

I hope it will help you...


这篇关于按原样保存表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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