//boton empleado private void bt2_Click(object sender, EventArgs e) { if (txtContraseña.Text.Trim() != "" && txtRegistro.Text.Trim() != "") { DataTable d = obu.pdatos(txtRegistro.Text, txtContraseña.Text); if (d.Rows.Count > 0) { if ((b1 == false) || (f2.IsDisposed)) { f2 = new FrmPrincipal_Empleado(d); f2.Show(); b1 = true; } } limpiar(); this.Hide(); } else { MessageBox.Show("Completar los campos", "Error!!", MessageBoxButtons.OK, MessageBoxIcon.Information); } }