private void patientToolStripMenuItem_Click(object sender, EventArgs e) { frmAddPatient bForm = new frmAddPatient(); bForm.MdiParent = this; bForm.StartPosition = FormStartPosition.CenterScreen; bForm.Show(); bForm.Focus(); }
private void btnAddPatient_Click(object sender, EventArgs e) { frmAddPatient bForm = new frmAddPatient(); bForm.MdiParent = this.MdiParent; bForm.StartPosition = FormStartPosition.CenterScreen; bForm.Show(); bForm.Focus(); }