Пример #1
0
        private void demoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CloseAllAciveForms();
            frmAddStudentType objfrmAddStudentType = new frmAddStudentType();

            objfrmAddStudentType.TopLevel = false;
            plSettingsMenu.Controls.Add(objfrmAddStudentType);
            objfrmAddStudentType.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objfrmAddStudentType.Dock            = DockStyle.Fill;
            //splitContainer2.Panel2.Controls.Add(objAddNewUser);
            //objAddNewUser.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            //objAddNewUser.Dock = DockStyle.Fill;

            objfrmAddStudentType.Show();
        }
Пример #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            frmAddStudentType objfrmAddStudentType = new frmAddStudentType();

            objfrmAddStudentType.Show();
        }