限制输入框 只能输入保留2位小数的正数字表达式:
\d+(\R.\d{0,2})?
MaskType = RegEx, EditMask = '\d+(\R.\d{0,2})?'
winform可输入正负数,带小数点
-?\d+(\R.\d{0,2})?
比如:textBox中输入: 0.23,0.56,26,999,1268,-0.26,只可以输入这两种数据: 数字+逗号(英文半角,)
^-?\d+(\.\d+)?(,-?\d+(\.\d+)?)*,?$
摘自:https://blog.csdn.net/xiaoyu812289718/article/details/18262125