private void btnBH_Click(object sender, EventArgs e) { HomeForm home = new HomeForm(); this.Hide(); home.Show(); }
private void Login() { if (txtUserName.Text == "moh" && txtPassword.Text == "123") { this.Hide(); HomeForm home = new HomeForm(); home.Show(); } else { MessageBox.Show("Invalide login ..."); } }