Exemplo n.º 1
0
        private void txtPrecio_Validating(object sender, CancelEventArgs e)
        {
            decimal pre;

            if (!decimal.TryParse(txtPrecio.Text, out pre))
            {
                ErrorProvider.Equals(txtPrecio, "Ingrese valor en numeros");
            }
        }