private void Form1_Load(object sender, System.EventArgs e)
{
this.IsMdiContainer = true;
// Create a new form to represent the child form.
Form child = new Form();
// Increment the private child count.
// Set the text of the child form using the count of child forms.
String formText = "Child " ;
child.Text = formText;
// Make the new form a child form.
child.MdiParent = this;
// Display the child form.
child.Show();