高手给点指点吧!
8 个解决方案
#1
关注
#2
顶!
#3
关注中
#4
什么意思??
正则
^\d{5}(\.\d{2})?$
??
正则
^\d{5}(\.\d{2})?$
??
#5
numericUpDown1.DecimalPlaces = 2; //小数点后两位
numericUpDown1.Increment = 0.01M;
numericUpDown1.Maximum = 999.99M;
numericUpDown1.Minimum = -999.99M;
numericUpDown1.Value = -999.99M;
numericUpDown1.ReadOnly = true;
numericUpDown1.Increment = 0.01M;
numericUpDown1.Maximum = 999.99M;
numericUpDown1.Minimum = -999.99M;
numericUpDown1.Value = -999.99M;
numericUpDown1.ReadOnly = true;
#6
up
#7
老大 DecimalPlaces 是控件中显示的小数位数,而不是输入的小数点位数!
#8
顶,要不用别的办法实现吧
#1
关注
#2
顶!
#3
关注中
#4
什么意思??
正则
^\d{5}(\.\d{2})?$
??
正则
^\d{5}(\.\d{2})?$
??
#5
numericUpDown1.DecimalPlaces = 2; //小数点后两位
numericUpDown1.Increment = 0.01M;
numericUpDown1.Maximum = 999.99M;
numericUpDown1.Minimum = -999.99M;
numericUpDown1.Value = -999.99M;
numericUpDown1.ReadOnly = true;
numericUpDown1.Increment = 0.01M;
numericUpDown1.Maximum = 999.99M;
numericUpDown1.Minimum = -999.99M;
numericUpDown1.Value = -999.99M;
numericUpDown1.ReadOnly = true;
#6
up
#7
老大 DecimalPlaces 是控件中显示的小数位数,而不是输入的小数点位数!
#8
顶,要不用别的办法实现吧