c# - How to accept only one decimal point in a textbox? -
the textbox accept numbers , 1 decimal point.
for example textbox contains "12345.56". when period pressed second time on keyboard must not appear in textbox because textbox contains period.
[0-9]+(\.[0-9][0-9]?)? go regular expressions.
Comments
Post a Comment