开发者

Need .NET controls serialization

开发者 https://www.devze.com 2023-03-05 01:26 出处:网络
I need to serialize every control of a .NET managed process (whether it\'s main form, child controls like buttons, calender, text boxes, list boxes, combos, etc). Every simple class object is easily s

I need to serialize every control of a .NET managed process (whether it's main form, child controls like buttons, calender, text boxes, list boxes, combos, etc). Every simple class object is easily serializable/deserializable using binary formaters, but these controls (which I got their info thr开发者_JAVA技巧ough reflection(Type.GetFields(), Type.GetProperties())) are not serializing through this serialization method which I described.

It throws a "type System.Forms.Form.WinForm to be serialize" exception. After serialization I need to pass the control's information as it is, to another remote process.

How can I get the .NET control's information to be serializable? (Json?)


I believe http://www.codeguru.com/forum/archive/index.php/t-421612.html has an answer for you

0

精彩评论

暂无评论...
验证码 换一张
取 消