Exemple #1
0
        private void studentProfileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmStudentEnrollment std = new frmStudentEnrollment();

            std.txtAdmNo.Focus();
            std.Show();
        }
Exemple #2
0
        private void studentEntryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmStudentEnrollment frm = new frmStudentEnrollment();

            frm.adding = true;
            frm.Show();
        }
        private void DataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            try
            {
                DataGridViewRow dr = DGV.SelectedRows[0];

                if (!dr.IsNewRow && dr.Cells["admissionno"].Value != null)
                {
                    frmStudentEnrollment frm = new frmStudentEnrollment();
                    string admmino           = dr.Cells["admissionno"].Value.ToString();
                    frm.admno  = admmino;
                    frm.adding = false;

                    frm.Show();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }