private void metroButton5_Click(object sender, EventArgs e) { Adminmain am = new Adminmain(); am.Show(); this.Hide(); }
private void metroButton1_Click(object sender, EventArgs e) { if (metroTextBox1.Text == "Admin" && metroTextBox2.Text == "123") { am.Show(); this.Hide(); } else { MessageBox.Show("Username and password is invalid"); } }