private void profileToolStripMenuItem_Click(object sender, EventArgs e) { viewProfileFrm nf = new viewProfileFrm(); this.Close(); nf.Show(); }
private void loginBtn_Click(object sender, EventArgs e) { if ((userNameTxt.Text == "admin") && (passwordTxt.Text == "test123")) { RegisterStudentFrm nff = new RegisterStudentFrm(); this.Hide(); nff.Show(); } else { viewProfileFrm nf = new viewProfileFrm(); this.Hide(); nf.Show(); checkLogin(); } }