1
votes

I have a winform and opening other forms inside this using IsMdiContainer property. In contructor of parent I got :

    this.IsMdiContainer = true;
    this.WindowState = FormWindowState.Maximized;

then for child I got :

        child.MdiParent = this;
        child.WindowState = FormWindowState.Maximized;

for some reason if you maximize and restore down(not minimize) the child form shrinks each time. Now in child form I have a dock.fill panel and two groupboxes one docked to top and other dock to fill.

any ideas why this behaviour is happening?

Thanks

1
The child form has to shrink down in order to fit in its new (smaller) container.Cody Gray
but how would i make the parent to stop getting smallerJames

1 Answers

1
votes

This shouldn't happen. Check the code for your child form and see if you can find any additional size settings.