Custom Designers deserialize SplitContainer problem

Posted by Hamid on Stack Overflow See other posts from Stack Overflow or by Hamid
Published on 2010-04-04T18:52:52Z Indexed on 2010/04/04 19:03 UTC
Read the original article Hit count: 425

Hi

I just using this link http://msdn.microsoft.com/en-us/magazine/cc163634.aspx for extent custom designer. I using BasicDesignerLoader type because need xml data for save in db. all thing work properly.

I try add SplitContainer to form and then serialize form, it's ok, but when try deserialize it, items that contains in SplitContainer Panel, failed. after i check it see not implement ReadRefrence method (only wrote WriteReference method)

How to implement it fast ?

Note: After download sample from http://download.microsoft.com/download/f/2/7/f279e71e-efb0-4155-873d-5554a0608523/DesignerHosting.exe, you must add typeof(System.Windows.Forms.SplitContainer) to ToolboxXmlManager.cs(Line 13) in ToolBox project.

Note2: Find (De)Serialize method in BasicHostLoader.cs at Loader Project

Thanks in advanced

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms