Docking/MDI for Windows Forms Forum

Posted 13 years ago by Geoffrey Allen - software engineer, Kelman Ltd.
Version: 2.0.96
Hi, have you any example code that saves custom data to the layout file and then reloads it when loading a layout. It's just the demo app doesn't go this far.

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Geoffrey,

The SaveCustomToolWindowLayoutData event args pass you an XmlWriter. You can use that to write whatever data, like a string, to the layout.

The LoadCustomToolWindowLayoutData event args pass you an XmlReader. Then you use that to load the data back in.

I don't have sample code for this right now but it should be pretty straightforward once you try it out.

Actipro Software Support

The latest build of this product (v21.1.0) was released 17 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.