I have set a form as a child of an MDI form which has its WindowState set to Maximized.
When I open that form from an MDI container, it doesn't open in Maximized state. Why is this happening and how can I make it open maximized?
This is how I am showing child form from mdi container.
private void ShowNewForm(object sender, EventArgs e)
{
FormChild childForm = new FormChild ();
childForm.MdiParent = this;
childForm.WindowState = FormWindowState.Maximized;
childForm.Text = "Window " + childFormNumber++;
childForm.Show();
}
It's simple.
In child form load event write code: