private void button2_Click(object sender, EventArgs e) { FormPrincipal form = new FormPrincipal(); form.Show(); this.Hide(); }
private void FormLogin_KeyPress(object sender, KeyPressEventArgs e) { { if (e.KeyChar == 13) { FormPrincipal form = new FormPrincipal(); form.Show(); this.Hide(); } } }