private void btnLogin_Click(object sender, EventArgs e) { Form f = new FormTaiKhoan(); this.Hide(); f.ShowDialog(); this.Show(); }
private void txtPassword_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { Form f = new FormTaiKhoan(); this.Hide(); f.ShowDialog(); this.Show(); } }