private void button1_Click(object sender, EventArgs e) { Admin_Fn f12 = new Admin_Fn(); f12.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (UserName.Contains(textBox1.Text) && Password.Contains(textBox2.Text)) { Admin_Fn f10 = new Admin_Fn(); this.Hide(); f10.Show(); } else { MessageBox.Show("Error"); } }