public static bool IsDecimal(string theValue) { //A function to mimic the VB.NET VB6 function Is Numeric try { Convert.ToDouble(theValue); return true; } catch { return false; } } private void txtValue_TextChanged(object sender, System.EventArgs e)