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.

SetEnableDocking exception

Thread ID:

Created:

Updated:

Platform:

Replies:

36053 Oct 19,2005 06:53 AM Oct 20,2005 09:54 AM Windows Forms 1
loading
Tags: Tools
Limor Zisman
Asked On October 19, 2005 06:53 AM

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 3.0.1.0 Thanks, Limor

Vijayanand S [Syncfusion]
Replied On October 20, 2005 09:54 AM

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

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.

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.

;