private void newToolStripMenuItem_Click(object sender, EventArgs e) { MDIChildForm MDIChild = new MDIChildForm(); MDIChild.MdiParent = this; MDIChild.Text = newDocumentText + this.MdiChildren.Length.ToString(); MDIChild.Show(); }
private void openFileDialog_FileOk(object sender, CancelEventArgs e) { MDIChildForm MDIChild = new MDIChildForm(); MDIChild.MdiParent = this; MDIChild.Editor.LoadFile(openFileDialog.FileName); MDIChild.FileName = openFileDialog.FileName; MDIChild.Show(); }