private void identificationbtn_Click(object sender, EventArgs e) { startupPnl.Visible = false; disposing(); newMDIiden = new Indentification(); // Set the Parent Form of the Child window. newMDIiden.MdiParent = this; newMDIiden.Dock = DockStyle.Fill; // Display the new form. //this.mriContainer.Controls.Add(newMDIChild); newMDIiden.Show(); }
private void btnIdentify_Click(object sender, EventArgs e) { if (indForm == null) { indForm = new Indentification(); indForm.MdiParent = this; indForm.FormClosed += IndForm_FormClosed; indForm.Show(); } else { indForm.Activate(); } }
private void IndForm_FormClosed(object sender, FormClosedEventArgs e) { indForm = null; }
private void btnInd_Click(object sender, EventArgs e) { Indentification indForm = new Indentification(); indForm.Show(); }