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

Closing a Docked form programmatically

Thread ID:





59599 Apr 18,2007 10:43 AM UTC Apr 19,2007 07:35 AM UTC WinForms 1
Tags: Tools
Asked On April 18, 2007 10:43 AM UTC

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 07:35 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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