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
920
UltraDockManager
posted

Hello. I'm new with UltraDockManager. I'm trying to add some forms as dockable windows. My main form already has an UltraTabbedMdiManager. By now I've only done this:

  1. Add the UltraDockManager to the main form.
  2. ultraDockManager1.DockControls(new Control[] { new frmChild(true) }, DockedLocation.DockedLeft, ChildPaneStyle.TabGroup);
  3. public frmChild(bool dockWindow)
    {
        InitializeComponent();
        if (dockWindow)
        {
            this.TopLevel = false;
            this.FormBorderStyle = FormBorderStyle.None;
        }
    }

I want to know what do I have to do to make the form start unpined (with auto-hide). Also I'm already having some trouble: The load event of the form is not firing. I don't know if it may be related but another instance of the same form is also a tab in the UltraTabbedMdiManager.

 

Thanks,

Diego

  • 920
    Verified Answer
    posted

    I was also able to resolve the form_load point. I'd to change the same code (the one in the second point) to this:

    frmChild form = new frmChild(true);

    form.MdiParent = this;

    DockAreaPane areaPane = ultraDockManager1.DockControls(new Control[] { form }, DockedLocation.DockedLeft, ChildPaneStyle.TabGroup);

    areaPane.Unpin();

    form.Show();

  • 920
    Verified Answer
    posted

    I found how to start the dockable window unpinned. In the line of point 2 I have to add .Unpin() like this:

     

    ultraDockManager1.DockControls(new Control[] { new frmChild(true) }, DockedLocation.DockedLeft, ChildPaneStyle.TabGroup).Unpin();

     

    But I'm still having troubles with the load event. Anyone?