Question

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.

Was it helpful?

Solution 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.

OTHER TIPS

 private void childform_SizeChanged(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Normal;
            this.Size = new Size(500, 500);
        }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top