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

Dockable Windows - Best Practices

Thread ID:





51387 Nov 3,2006 11:11 AM Nov 3,2006 01:52 PM Windows Forms 1
Tags: Tools
Scott Swartz
Asked On November 3, 2006 11:11 AM

I have an MDI application which has multiple dockable windows. It was very easy to add a panel to the MDI container and set it’s ”Enable Docking on DockingManager” property. However, there is a fair amount of cose behind each of these dockable windows which ends up in the MDI's code file which is quite large. Ideally, there would be a way to seperate the code.

I'm curently looking to convert one of my standard forms to a docking window. I know that I could add a panel to the MDI, copy the conrols to the panel and then paste all of the code into the MDI code window, but I'm hoping that there is a clean way of seperating things out.

Administrator [Syncfusion]
Replied On November 3, 2006 01:52 PM

Hi Scott,

A Standard Form can be docked to the MDI Window by using the SetEnableDocking() method of the DockingManager.


For this to work, you have to set the following properties to the Child form.

frmChild.TopLevel = false;
frmChild.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

Here is the link of the KB which explains the same.
How to dock a form within a host form?

I have also attached a sample. Kindly look in to it and let me know whether this is what you actually needed.




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