private void userRegistrationToolStripMenuItem_Click(object sender, EventArgs e) { frmStudentProfile obj = new frmStudentProfile(); obj.MdiParent = this; obj.Show(); }
private void profileEntryToolStripMenuItem1_Click(object sender, EventArgs e) { frmStudentProfile obj = new frmStudentProfile(); obj.MdiParent = this; obj.Show(); }
private void btnBack_Click_1(object sender, EventArgs e) { frmStudentProfile obj = new frmStudentProfile(); obj.Show(); this.Hide(); }
private void studentdataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { frmStudentProfile obj = new frmStudentProfile(); this.Hide(); obj.Show(); obj.SbtnUpdate.Enabled = true; obj.SbtnDelete.Enabled = true; obj.SID.Text = studentdataGridView.SelectedRows[0].Cells[0].Value.ToString(); obj.StdFName.ForeColor = Color.Black; obj.StdFName.Text = studentdataGridView.SelectedRows[0].Cells[1].Value.ToString(); obj.SClass.Text = studentdataGridView.SelectedRows[0].Cells[2].Value.ToString(); obj.SRoll.Text = studentdataGridView.SelectedRows[0].Cells[3].Value.ToString(); obj.SSection.Text = studentdataGridView.SelectedRows[0].Cells[4].Value.ToString(); if (studentdataGridView.SelectedRows[0].Cells[5].Value.ToString() == "Male") { obj.radioButton1.Checked = true; obj.radioButton2.Checked = false; obj.radioButton3.Checked = false; } if (studentdataGridView.SelectedRows[0].Cells[5].Value.ToString() == "Female") { obj.radioButton1.Checked = false; obj.radioButton2.Checked = true; obj.radioButton3.Checked = false; } if (studentdataGridView.SelectedRows[0].Cells[5].Value.ToString() == "Not Specified") { obj.radioButton1.Checked = false; obj.radioButton2.Checked = false; obj.radioButton3.Checked = true; } obj.SDOB.Text = studentdataGridView.SelectedRows[0].Cells[6].Value.ToString(); obj.SStatus.Text = studentdataGridView.SelectedRows[0].Cells[7].Value.ToString(); obj.SFName.Text = studentdataGridView.SelectedRows[0].Cells[8].Value.ToString(); obj.SMName.Text = studentdataGridView.SelectedRows[0].Cells[9].Value.ToString(); obj.SLocalGuardian.Text = studentdataGridView.SelectedRows[0].Cells[10].Value.ToString(); obj.textBox3.Text = studentdataGridView.SelectedRows[0].Cells[11].Value.ToString(); obj.SPAdd.Text = studentdataGridView.SelectedRows[0].Cells[12].Value.ToString(); obj.STAdd.Text = studentdataGridView.SelectedRows[0].Cells[13].Value.ToString(); obj.SAddmissionDate.Text = studentdataGridView.SelectedRows[0].Cells[14].Value.ToString(); obj.SReligion.Text = studentdataGridView.SelectedRows[0].Cells[15].Value.ToString(); obj.SComment.Text = studentdataGridView.SelectedRows[0].Cells[16].Value.ToString(); obj.PreSName.Text = studentdataGridView.SelectedRows[0].Cells[17].Value.ToString(); obj.PreSPhone.Text = studentdataGridView.SelectedRows[0].Cells[18].Value.ToString(); obj.PreSAdd.Text = studentdataGridView.SelectedRows[0].Cells[19].Value.ToString(); obj.PassedClass.Text = studentdataGridView.SelectedRows[0].Cells[20].Value.ToString(); obj.SPhoto.ImageLocation = System.Windows.Forms.Application.StartupPath + "\\images\\" + obj.SID.Text + ".jpg"; } catch (Exception) { //throw; } }
private void frmStudentDataGridView_FormClosed(object sender, FormClosedEventArgs e) { frmStudentProfile obj = new frmStudentProfile(); obj.Show(); }