private void EliminarButton_Click(object sender, EventArgs e) { int id; int.TryParse(IdnumericUpDown.Text, out id); Limpiar(); if (ProyectosBLL.ELiminar(id)) { MessageBox.Show("Transacción Exitosa", "Éxito", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { ErrorProvider.SetError(IdnumericUpDown, "Este Id no existe en la base de datos"); } }