Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            #region To Main Form
            pnlMain.Controls.Clear();
            pnlMain.Visible = true;
            //load the form
            frmTeacher teachers = new frmTeacher();
            teachers.TopLevel   = false;
            teachers.AutoScroll = true;

            pnlMain.Controls.Add(teachers);
            teachers.Show();
            #endregion
        }
Exemple #2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmTeacher teacher = new frmTeacher();
 }
Exemple #3
0
        private void frmEditTeacher_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmTeacher teacher = new frmTeacher();

            teacher.btnRefresh.PerformClick();
        }