private void button3_Click(object sender, EventArgs e) { this.Hide(); Main_Menu mm = new Main_Menu(); mm.Show(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.ToString() == "yltc" && textBox2.Text.ToString() == "exam") { this.Hide(); Main_Menu f = new Main_Menu(); f.Show(); } else { MessageBox.Show("Sorry! Incorrect Login Details.", "Login Failed", MessageBoxButtons.OK, MessageBoxIcon.Error); } }