private void txtPrecioCompra_TextChanged(object sender, EventArgs e) { UtilityFrm.limpiarErrorProvider(txtPrecioCompra, errorIcono); if (txtPrecioCompra.Text.Length > 0 && txtPrecioCompra.Text[0] == ',') { txtPrecioCompra.Text = ""; } else if (txtPrecioCompra.Text.Length == 0) { errorIcono.SetError(txtPrecioCompra, "Es necesario un valor Numerico en el campo Precio de compra"); } }