Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
430
Problem - Working with DockManager and TabbedMDIManager together
posted

 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?

 


Parents
  • 44743
    Verified Answer
    posted

    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.

Reply Children