如何序列化表单控件列表 [英] How to serialise list of form Controls

查看:112
本文介绍了如何序列化表单控件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们.我将序列化表单控件.它给出了错误,程序集``System.Windows.Forms,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089''未标记为可序列化.
嗯,有一些方法可以序列化表格控件.
谢谢.

Hi Friends. I am going to serialize the form controls. It is giving error , Assembly ''System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'' is not marked as serializable.
Well is there some way to serialize the form Controls.
Thank you.

推荐答案

您无法序列化表单控件.

有关解决方法,请参见此处.
You cannot serialize form controls.

For a workaround, see here.


先前的答案,如何使用代理序列化未标记为可序列化"的对象. [ ^ ]可能会帮助您.

祝你好运! :)
In addition to the previous answer, How to serialize an object which is NOT marked as ''Serializable'' using a surrogate.[^] might help you.

Good luck! :)


这篇关于如何序列化表单控件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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