Using the NumericUpDown Control

The NumericUpDown control is a simple way to give the user a way to select a number that falls between a minimum and a maximum value. The control can accept only integers, and decimal values will be truncated as opposed to rounded. On the Pocket PC, the maximum value cannot be greater than that of a 16-bit signed integer.

The NumericUpDown control is controlled by four integer properties: Minimum, Maximum, Value, and Increment. The Minimum and Maximum properties define the minimum and maximum values of the control. The Value property is the current value of the control. The Increment property defines the amount by which the current value is incremented or decremented when the user clicks the up or down arrow buttons. ...

Get Microsoft® .NET Compact Framework Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.