型 | プロパティ | 内容 | 既定値 |
---|---|---|---|
bool | ThousandsSeparator | trueならば、桁区切りを表示する | false |
bool | Hexadecimal | trueならば、16進数形式で表示する | false |
int | DecimalPlaces | 小数部の桁数 | 0 |
UpdateEditTexts()をオーバーライドすることで、書式など表示方法を変更できます。
protected override void UpdateEditText ();NumericUpDown.UpdateEditText Method (System.Windows.Forms) | Microsoft Learn
protected override void UpdateEditText() { this.Text = this.Value.ToString("0000"); }winforms - How To Display "0000" instead "0" in NumericUpDown in C# - Stack Overflow