Represents a textbox with button spinners that allow incrementing and decrementing decimal values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.
When using the DecimalUpDown in data-binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. You can also specify whether the user can directly edit the values in the text box by setting the IsReadOnly property. If you would like to get the actual formatted string representation of the value, you can use the Text property.
Example
The following shows how to create a DecimalUpDown.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2