private void searchB_Click(object sender, EventArgs e) { string radio = ""; string text = ""; if (idSearchRB.Checked == true) { radio = "hall_std_id"; } if (nameSearchRB.Checked == true) { radio = "student_info.name"; } if (rollSearchRB.Checked == true) { radio = "class_roll"; } if (searchTB.Text == "") { MessageBox.Show("Please fill up the empty field.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); searchTB.Focus(); return; } else { text = searchTB.Text; } Student.single_student_report cs = new Student.single_student_report(); cs.radio = radio; cs.text = text; cs.button = true; cs.Show(); }
private void singel_student_reportB_Click(object sender, EventArgs e) { Student.single_student_report ss = new Student.single_student_report(); ss.Show(); }