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.

Closing a Docked form programmatically

Thread ID:





59599 Apr 18,2007 06:43 AM Apr 19,2007 03:35 AM Windows Forms 1
Tags: Tools
Asked On April 18, 2007 06:43 AM

Hi All

I just started using this set of controls and needs help on following.

I changed a form to be dockable form using

dockingManager.FloatControl(form, form.ClientRectangle);

however when i close my form using this.Close(); still the dockhost is visible. and when i try to close it it give an argumentoutofboundexception
at System.Windows.Forms.Control.ControlCollection.get_Item(Int32 index)
at Syncfusion.Windows.Forms.Tools.DockHostController.CloseController()
at Syncfusion.Windows.Forms.Tools.FloatingFormController.CloseController()
at Syncfusion.Windows.Forms.Tools.FloatingForm.WndProc(Message& msg)

I need to close the form programatically in C#.

Please elaborate on how to do.

Thanks in Advance

Poly J [Syncfusion]
Replied On April 19, 2007 03:35 AM

Hi Waruna,

Thanks for your interest in Syncfusion Products.

Please set the EnableDocking to false before closing the form.

this.dockingManager1.SetEnableDocking(form, false);

Please refer to the attached sample and let me know if you need further assistance with this incident.


Best Regards,


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.