문제

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