c# child mdi does not maximize with parent
Posted on 2014-11-05
I have a MDI form with a child form docked that works great until I maximize the window. When I do, the child form does not maximize to fill up the MDI Parent. I have been trying to catch & resize the object on Parent Resize, but I'm just not having luck.
Also, the child's Window state is set to maximize and autosize is set to True (I have tried it both ways). I have also set the parent form ISMDIContainer to True.
My code to load the client from a menu item click on the parent MDI form is:
frmChild newCurt = new frmChild();
newCurt.TopLevel = false;
newCurt.AutoScroll = true;
newCurt.FormBorderStyle = FormBorderStyle.None;
I am building this in VS2012 / c# .net 4.5.