示例#1
0
        private void btnStudent_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmStudentLogin studLog = new frmStudentLogin();

            studLog.Show();
        }
示例#2
0
        private void menuStudent_Click(object sender, EventArgs e)
        {
            DialogResult Message;

            Message = MessageBox.Show("Are you sure that you would like to" +
                                      "leave? ", "Wait...", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (Message == DialogResult.Yes)
            {
                this.Hide();
                frmStudentLogin student = new frmStudentLogin();
                student.Show();
            }
        }