I have an MDI Container with both a dockmanager and tabbed MDI manager. I want to be able to dock any new forms that are opened from that form. So for now i am calling dockManager.DockControls() in the initializeTab event on any new Form that initializes from the tab manager. This works and docks the entire form. When you right click on the pane, there is the "Dockable" option in the context menu, that when unchecked puts the tab back as a child. Then you can right click on the tab and make it dockable again. I would like to start the form out as the Non-Dockable tab and then have the option to make it dockable from there. Is there any way to accomplish this?
It is possible in a way, but instead of docking the mdi child forms, you will make mdi child forms out of your dock panes. You will first want to create a UserControl to be the 'special form.' Add an instance of the UserControl to your mdi parent form and dock it with the dock manager. Select the dock manager and in the property grid, expand the ControlPanes collection and find the pane you just created. Set its IsMdiChild to True (it will be hidden from the designer). Then at run-time, if you want to turn it into a dock panel again, right-click it and check 'Dockable'.
Hi Mike, regarding to the current issue "Problem - Working with DockManager and TabbedMDIManager together" i ran into trouble and im not able to get the following running:
- i created some forms and all of the forms are MDIChilds running in a parent MDI form
-is it possible to dock special forms like it is been done in the visual studio environment ?
...and can you provide some sourcecode (perfer VB.NET) ?
Your help is much appreciated.
Regards,
Get the DockableControlPane from the ControlPanes collection of the UltraDockManager after your call to DockControls. You can get the pane by passing the Form into the indexer of the collection. Once you have the pane, set IsMdiChild to True.