c#中的Numericupdown为0.00

时间:2016-06-14 05:28:25

标签: c# numericupdown

我需要将numericUpDown设为0.00格式我不知道如何将numericUpDown设为0.00

当我在numericUpDown中增加时,它会像1.00 , 2.00 ......n.00

一样递增

enter image description here

enter image description here

当我减少时

它给出-1.00,-2.00 ....- n.00

enter image description here

enter image description here

如何使这种格式的numericUpDown帮助我。

1 个答案:

答案 0 :(得分:1)

您需要为numericUpDown1指定DecimalPlaces,否则将采用默认值0。同样,您必须指定.Increment,否则默认值{{1}将被评估。现在看看如何设置这些:

1

有关NumericUpdown

的更多说明