Takže jsem nakonec přeci jenom objevil na MSDN jak na to. Stačí přidat jeden řádek kódu.
private void ShowNewForm(object sender, EventArgs e)
{
// Create a new instance of the child form.
Form childForm = new Form();
// Make it a child of this MDI form before showing it.
childForm.MdiParent = this;
// Add the child to the ContentPanel.
this.toolStripContainer1.ContentPanel.Controls.Add(childForm);
childForm.Text = "Window " + childFormNumber++;
childForm.Show();
}
|