A control that provides a TextBox with button spinners that allow incrementing and decrementing numeric values by using the spinner buttons, keyboard up/down arrows, or mouse wheel, and also provides a Calculator dropdown that allows you to perform mathematical calculations.
When using the CalculatorUpDown 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 if the user can directly edit the values in the text box by setting the IsEditable property. To get the actual formatted string representation of the value, use the Text property.
FormatString supports the following specifiers: C (currency), F (fixed point), G (general), N (number), and P (percent).
Example
The following example shows how to create a floating-point CalculatorUpDown using FormatString.
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