private void button1_Click(object sender, EventArgs e) { CoursesU ac = new CoursesU(); ac.Show(); this.Hide(); }
private void backToolStripMenuItem_Click(object sender, EventArgs e) { CoursesU aCourse = new CoursesU(); aCourse.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (usernametextBox.Text == "Kishor" && passwordtextBox.Text == "1234") { CoursesU aCourse = new CoursesU(); aCourse.Show(); this.Hide(); } else if (usernametextBox.Text == "Kishor" && passwordtextBox.Text == "") { MessageBox.Show("Password is Invalid"); } else if (usernametextBox.Text == "" && passwordtextBox.Text == "1234") { MessageBox.Show("User Name is Invalid"); } else if (usernametextBox.Text != "Kishor" && passwordtextBox.Text != "1234") { MessageBox.Show("UserName or Password is not Match !!"); } }