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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DockingManager.LockHostFormUpdate causing Form Load event

Thread ID:

Created:

Updated:

Platform:

Replies:

95680 Jul 23,2010 04:36 PM UTC Jul 26,2010 12:31 PM UTC WinForms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On July 23, 2010 04:36 PM UTC

There appears to be a change in behaviour between version 7.3 and 8.3 of the docking manager. At program startup I load an MDI parent form that uses a constructor to retrieve database values, stored settings for control sizes/positions and also calls the following three lines:

dcmMain.LockHostFormUpdate()
dcmMain.LoadDockState()
dcmMain.UnlockHostFormUpdate()

Using version 7.3 the constructor executed in full before the form load event was triggered. Using version 8.3 the constructor executes as far as the LockHostFormUpdate method which forces the FormLoad event to fire, before the constructor has finished it's own tasks.

I can avoid the problem by moving the three lines to the MDI parent's FormLoad event, but the process of displaying the form with dockable panels now appears very ragged. Using the constructor, all docking manager settings etc. were in place before the form appeared, providing a short, crisp form display time. Using the formload event causes the form to take several seconds to appear during which time the various panels can be seen painting themselves. Suspending/Resuming the layout has no effect.

Is this new behaviour by design? Can you suggest a work-around please, so that the screen display returns to how it was using version 7.3?

Thanks for your help.

Steve Graham

Attachment showing a screen shot during load.



ScreenShot_Loading_e8b14684.zip

Ramya D [Syncfusion]
Replied On July 26, 2010 12:31 PM UTC

Hi Steve,

Thanks for your interest in Syncfusion products.

The reported issue regarding the execution of the Form_load event before the constructor with the DockingManager has been fixed in our code library and will be available in our next release.

Please let us know if you have concerns on this.

Regards
Ramya D.

CONFIRMATION

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.

Warning Icon 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.Close Icon

;