private void btnLogin_Click(object sender, EventArgs e) { if (txtLogin.Text == usuario && txtSenha.Text == senha) { Form Inicio = new frmInicio(); Inicio.Show(); this.Hide(); } else { MessageBox.Show("Erro de Login", "Erro de Login"); } }