We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Dockmanager switches docked controls with each other on save/load

Thread ID:





50241 Oct 9,2006 03:23 PM Oct 11,2006 12:17 PM Windows Forms 1
Tags: Tools
Daniel Chait
Asked On October 9, 2006 03:23 PM

I save out my dock manager using the following code:
private byte[] GetDockState()
MemoryStream ms = new MemoryStream();
AppStateSerializer appStateSer = new AppStateSerializer(SerializeMode.XMLFile, ms);
string stateStr = ms.ToString();
return ms.ToArray();

and load it back like this:
private void SetDockState(byte[] value)
_dockMgr.LoadDockState(new AppStateSerializer(
SerializeMode.XMLFile, new MemoryStream(value)));
However when I do, two of the controls are reversed. This happens every time, so if I save and load, they swap again. How can I fix this?


Murugan [Syncfusion]
Replied On October 11, 2006 12:17 PM

Hi Daniel,

Since we have another forum on same isssue, Please follow the forum
Controls are reversed when saving/loading a dockManager

Murugan P.S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.