private void txt_precio_TextChanged(object sender, EventArgs e) { // if (!System.Text.RegularExpressions.Regex.IsMatch(txt_Precio.Text, @"^\d{1,14}(?:\.\d{0,2}){0,1}$")) // { // txt_Precio.Text = string.Empty; // } txt_Precio.Text = CValidacionesGenerales.ValidarNumero(txt_Precio.Text, txt_Precio); }
private void txt_Stock_TextChanged(object sender, EventArgs e) { // if (System.Text.RegularExpressions.Regex.IsMatch(txt_Stock.Text, "[^0-9]")) // { // MessageBox.Show("Solo Numeros"); // txt_Stock.Text = string.Empty; // } txt_Stock.Text = CValidacionesGenerales.ValidarNumero(txt_Stock.Text, txt_Stock); }
private void txt_LocacionNum_TextChanged(object sender, EventArgs e) { txt_LocacionNum.Text = CValidacionesGenerales.ValidarNumero(txt_LocacionNum.Text, txt_LocacionNum); }