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.
Syncfusion Feedback

Closing a Docked form programmatically

Thread ID:

Created:

Updated:

Platform:

Replies:

59599 Apr 18,2007 10:43 AM UTC Apr 19,2007 07:35 AM UTC Windows Forms 1
loading
Tags: Tools
Waruna
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
Waruna



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);
form.Close();

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

http://websamples.syncfusion.com/samples/Tools.Windows/F59599/main.htm

Best Regards,
Poly


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

;