I just want to have my mdichild form to resize when pressing the maximize button and that it will not docked on the parent form.

My initial MDIChild size is 100,100 and when I press the maximize button. I will just have to resize the MDIChild size into 500,500. My problem is that when I pressed the maximize button, it will dock into the mdiparent form and fill all the remaining space that the mdiparent form have.

By the way my MDIParent size is 800,800 so the MDIChild won't go beyond the MDIParent.

有帮助吗?

解决方案 2

MDIChild will dock to the MDIParent form when the maximized button of MDIChild is clicked. This is a property of a child even if there are wndproc applied to its code.

其他提示

 private void childform_SizeChanged(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Normal;
            this.Size = new Size(500, 500);
        }
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top