NumericUpDown Class

Represents an up-down control (also known as a spin box) that displays numeric values.

Namespace: elsystem.windows.forms

Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name

Type

Description
Public property BorderStyle enum Gets or sets the style of border for the control. See BorderStyle for a list of values.
Public property DecimalPlaces double Gets or sets the number of decimal places to display in the up-down control.
Public property Increment double Gets or sets how much to increment or decrement Value when the up or down buttons are clicked.
Public property Maximum double Gets or sets the maximum value for the  up-down control.
Public property Minimum double

Gets or sets the minimum allowed value for the  up-down control.

Public property TextAlign object

Gets or sets the alignment of the text in for the  up-down control.

Public property ThousandsSeparator bool True to display a thousands separator as part of the number.
Public property Value double Gets or sets the value assigned to for the up-down control.
Methods
  Name Description
Public property Create() Initializes a new instance of a numeric up-down control.
Public property Create(width,height) Initializes a new instance of a numeric up-down control.  Parameters include the Width and Height of the control.
Public property Create(value,minvalue,maxvalue) Initializes a new instance of a numeric up-down control.  Parameters include the initial Value, the Minimum value, and the Maximum value of the control.
Public property DownButton() Decrements the value of the up-down control.
Public property UpButton() Increments the value of the up-down control.
Events
  Name Description
Public event ValueChanged Occurs when the Value property has been changed in some way. See EventArgs for the properties returned by the handler's args parameter.