Hi,

I have a windows form which has the following properties:

1) form1.IsMDIContainer = true;
2) panel1.Dock = DockStyle.Right;

Then I create a new child window and set its properties:

1) FormBorderStyle = FormBorderStyle.None;
2) WindowState = FormWindowState.Maximized;

But what happens is the half right of this child window is covered by the panel and it's still showing the header of the window (icon, name, min, max, and close buttons).

My questions:
1) How do I make the child window maximize only on the left half on the parent window (not to make it behind the panel)?
2) How do I hide the header of the child window when it's maximized?

Please advice, thanks!
-CL