private void studentsRecordsToolStripMenuItem_Click(object sender, EventArgs e) { frmStudentDataGridView obj = new frmStudentDataGridView(); obj.Show(); obj.MdiParent = this; }
private void btnGetData_Click(object sender, EventArgs e) { frmStudentDataGridView obj = new frmStudentDataGridView(); this.Hide(); // obj.MdiParent = this; obj.Show(); }