private void button1_Click_1(object sender, EventArgs e) { if (textBox1.Text == "admin" && textBox2.Text == "123") { this.Hide(); Form17 home = new Form17(); home.Show(); } else { MessageBox.Show("Incorrect"); } }
private void button4_Click(object sender, EventArgs e) { Form17 home = new Form17(); home.Show(); }