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.


Thread ID:





44809 Jun 4,2006 06:58 AM Jun 5,2006 06:34 AM Windows Forms 2
Tags: Tools
Omry Levy
Asked On June 4, 2006 06:58 AM

Hi there, I have an infrastructure that is using instances of form derrived objects, i''ve added a docking manager and used the DockControl() to dock each one of them, it works great. The problem is that i can not remove or simulate the close button if i want to, how can i delete one of them from the docking manager and make him resize his layout accordingly. And how can i add the form again to the docking manager and make him perssist his last position and properties. - I dont want to change my code to use components that derrive from something else then Form because it is alot of code to change. Thanks, 0L

Joy K George [Syncfusion]
Replied On June 5, 2006 12:45 AM

Hi 0L, You could simulate the click of close button by using the method SetDockVisibility. dockingManager1.SetDockVisibility(control,true/false);//false to hide.Same as close button. The method SetEnableDocking is used to add or remove a control to or from the layout of DockingManager. dockingManager1.SetEnableDocking(control,false/true);false to delete a control from dockinglayout and then it will get it''s previous position. The SaveDockState and LoadDockState methods are implemented to persist the dockstate(last position and properties).For more details please see this knowledge base artilce Please let me know ,if you need more assistance. Regards, Joy

Omry Levy
Replied On June 5, 2006 06:34 AM



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.