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
20
Dock a form
posted

 Hi,

I'm new to the Infragitics Tools and have a problem. I want to dock a form by the help of the ultradockmanager. Here is my samplecode:

private void btnTest_Click(object sender, EventArgs e)
        {
            SuspendLayout();

            Form frm = new TestForm1();

            frm.TopLevel = false;

            frm.FormBorderStyle = FormBorderStyle.SizableToolWindow;

            DockableControlPane dcpForm =
              new DockableControlPane("form1", "Ein Formular", frm);


            DockableGroupPane dgpForm = new DockableGroupPane();
            dgpForm.ChildPaneStyle = ChildPaneStyle.TabGroup;
            dgpForm.Panes.Add(dcpForm);


            DockAreaPane dapLeft = new DockAreaPane(DockedLocation.DockedLeft);
            dapLeft.Panes.Add(dgpForm);


            this.ultraDockManager1.DockAreas.Add(dapLeft);

            ResumeLayout();
        }

 

Where is my fault? The "IsMdiContainer"-property of the (parent-)form ist set to true. Is there an C# sample project for docking forms by the ultradockmanager? 

Parents Reply Children
No Data