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.

Dock Layout Persistance

Thread ID:





35963 Oct 17,2005 10:42 AM Oct 18,2005 06:00 PM Windows Forms 3
Tags: Tools
Narendra Maharaj
Asked On October 17, 2005 10:42 AM

Hello: I''m using ver; Occasionally the layout manager mis-places windows on startup. On the form-close event I''m calling: dockingManager.SaveDockState (appStateSerializer); appStateSerializer.PersistNow(); And to retrieve: dockingManager.LoadDockState(appStateSerializer) Any help will be greatly apprecaited.

Administrator [Syncfusion]
Replied On October 18, 2005 06:27 AM

I believe that you must load the state in a handler of the docking manager''s NewDockStateEndLoad event - otherwise it will not work correctly. This event will fire again when you load the dock state, so your code must prevent recursive loading.

Vijayanand S [Syncfusion]
Replied On October 18, 2005 08:52 AM

Hi Narendra, Docking Manager loads the docking windows properties after the Form Load event. If you want to set or get the values for docking windows during application startup, you could use the statement within the NewDockStateEndLoad event. This event will trigger at the end of the Form Load event. Please take a look at this attached sample and let me know if this meets your requirements. We appreciate your interest in Syncfusion Products. Thanks, Vijay. Sample

Narendra Maharaj
Replied On October 18, 2005 06:00 PM

Great advice Vijayanand and Anonymous. That seem to work just fine. Thanks


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.