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

SetEnableDocking exception

Thread ID:





36053 Oct 19,2005 10:53 AM UTC Oct 20,2005 01:54 PM UTC WinForms 1
Tags: Tools
Limor Zisman
Asked On October 19, 2005 10:53 AM UTC

Hi, I have a form with DockingManager. I add controls to the DockingManager and at some point i want to remove the controls. I get an exception when one of the controls is hidden (AutoHide): public class Form1 : Form { private DockingManager dockingManager1; ... private ArrayList m_buttons = new ArrayList(); private void AddDockingControl() { Button b = new Button(); m_buttons.Add(b); dockingManager1.SetEnableDocking(b, true); } private void DelControls() { foreach (Control c in m_buttons) { dockingManager1.SetEnableDocking(c, false); } I''m using version Thanks, Limor

Vijayanand S [Syncfusion]
Replied On October 20, 2005 01:54 PM UTC

Hi Limor, I was able to reproduce the issue. It has fixed internally in the final release of Essential Studio V3.3. If you are interested in upgrading a latest release, please let me know. I have created a workaround for this issue. Please use the following statement in your sample. private void DelControls() { foreach (Control c in m_buttons) { //Gets the current AutoHide state of the control. if(dockingManager1.GetAutoHideMode(c)==true) dockingManager1.SetAutoHideMode(c,false); //Disabled docking for the control dockingManager1.SetEnableDocking(c, false); } } Please refer the attached sample and let me know if this is helps you. Thanks for using Syncfusion Products. Regards, Vijay forum36053.zip


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