the user should be allowed to enter only decimal values in the text box
for this keydown event is listened and the values are compared the regular expression
@"^((\+|-)?(\d*))+((\.|,)\d{0,5})?$";
the intention here is to restrict the decimal places to 6.
, is used as a decimal seperator for the european languages
the format of the numbers can be
+100, 100
-100
.12
10.12 .....
if the expression entered in the fashion works fine
suppose the entered values on the text box 100.123456 now if want to modify the above value like below
1100.123456
1001.123456
i am not able to modify because the Regex.IsMatch returns false, if the regex.ismatch returns false i am suppressing the key events
why regex.ismatch returns false when the 100.123456 is modified to 1100.123456 do i need to modify the regular expression