private void OpenFile(object sender, EventArgs e) { Form childForm = new BrokerWindow(); childForm.MdiParent = this; childForm.Text = "Window " + childFormNumber++; childForm.Show(); }
private void BrokerToolStripMenuItem_Click(object sender, EventArgs e) { BrokerWindow childForm = new BrokerWindow(); childForm.MdiParent = this; childForm.Text = childFormNumber.ToString(); childForm.Show(); }