Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mdi, max child

0 views
Skip to first unread message

Ching-Lung

unread,
Jan 24, 2004, 4:26:05 PM1/24/04
to
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

0 new messages