1
votes

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
i already apply winproc but still it will dock and fill on the mdiparent formJeff Robert Dagala
The purposed of an MDI form is to have it contained within the parent form, which probably means it will not be shown beyond the edge of the menu strip. bytes.com/topic/net/answers/…ABH
my MDIparent size is 800,800. so it will not go beyond the edge of the menu strip. :)Jeff Robert Dagala

2 Answers

0
votes
 private void childform_SizeChanged(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Normal;
            this.Size = new Size(500, 500);
        }
0
votes

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.