private void toolStripButton17_Click(object sender, EventArgs e) { RegsWindow regs = new RegsWindow(); // Set parent form for the child window regs.MdiParent = this; // Display the child window regs.Show(); }
private void registersToolStripMenuItem_Click(object sender, EventArgs e) { // Create a new instance of the MDI child template form RegsWindow chForm = new RegsWindow(); // Set parent form for the child window chForm.MdiParent = this; // Display the child window chForm.Show(); }