private void button2_Click(object sender, EventArgs e) { string str = reqContentValue.Text.Remove(0, 3); frmStudentView fm1 = new frmStudentView(); fm1.stuID = str; fm1.Show(); }
private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.SelectedCells.Count != -1) { frmStudentView fm1 = new frmStudentView(); fm1.stuID = dataGridView1.SelectedCells[0].Value.ToString(); fm1.isTeacher = true; fm1.teacherName = name; fm1.Show(); } }