如何序列化和反序列化WinForm及其所有内容(包括控件) [英] How to serialise and deserialize a WinForm and all of its content including controls

查看:668
本文介绍了如何序列化和反序列化WinForm及其所有内容(包括控件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,在该应用程序中,当用户单击保存"按钮时,必须将Winform序列化为带有控件的Winform,该控件由用户添加.当他选择要打开的表单时,我必须进行反序列化的反向操作才能将表单恢复到其编辑级别.
我该怎么办...

有什么想法吗?

谢谢

I am working on a application where I have to serialize a Winform with controls on it, added by the user, when he clicks the save button. I have to do the reverse of deserialization to restore the form to its edit level when he selects the form for opening.
How can I do that...

Any ideas??

Thanks

推荐答案

进行了搜索并找到了一些有趣的答案此处 [ ^ ].
Did a search and found some interesting answers here[^] and another approach here[^].


这篇关于如何序列化和反序列化WinForm及其所有内容(包括控件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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