private void SchoolsGV_CellContentClick(object sender, DataGridViewCellEventArgs e) { frmSchools school = new frmSchools(); school.uIDlbl.Text = (Int32.Parse(UserLoginGV.Rows[e.RowIndex].Cells["ID"].Value.ToString())).ToString(); school.Show(); }
private void manageSchoolsToolStripMenuItem_Click(object sender, EventArgs e) { frmSchools schools = new frmSchools(); schools.ControlsGB.Visible = true; schools.Show(); }