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

Dockable Windows - Best Practices

Thread ID:





51387 Nov 3,2006 04:11 PM UTC Nov 3,2006 06:52 PM UTC WinForms 1
Tags: Tools
Scott Swartz
Asked On November 3, 2006 04:11 PM UTC

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 06:52 PM UTC

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.

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