NumericUpDown

The NumericUpDown control places an up-down control (sometimes known as a 'spin box'), displaying numeric values that a user can navigate through to set. Minimum and maximum numbers in the available range are configured from the properties for the control.

Properties

Key properties for the NumericUpDown control include:

  • Increment. Sets the value by which each click of a control will increment or decrement the value.

  • Maximum. Used to set the maximum value that can be entered in the field,

  • Minimum. Sets the minimum allowed value for the field.

Events

Key events for the NumericUpDown control include:

  • MouseWheel. This event determines what happens when the mouse wheel moves while the control has focus. This can be used to allow users to scroll the mouse wheel up and down to increment or decrement the NumericUpDown value respectively.

For information on configuring events and other components of the design using a script, see: Working with Scripts.

Adding a Numeric Up Down

When you drag a NumericUpDown control to a form, the default format is displayed. You can modify the settings for the control using the Properties and Events panes.

Information on the Properties and Events for the NumericUpDown control can be found at the link to Microsoft® Documentation.