NumericUpDown Control in VB.NET


NumericUpDown Control is a rectangle box with Up and Down arrow key. It is used to represent a numeric value that can be incremented or decremented between specific range. You can also enter numeric value directly in the NumericUpDown Control between specific range if its readonly property is false.

Properties of NumericUpDown Control


Various Properties of NumericUpDown Control are:

Property Name Description
Name It is used to specify name of the NumericUpDown Control.
DecimalPlaces It is used to specify number of digits to be display after decimal point. Default value is 0.
Hexadecimal It is used to determine weather numeric value in the NumericUpDown Control is display in Hexadecimal form or not. It has boolean value. Default value is false.
Increment It is used to specify the amount by which the value of NumericUpDown Control is Incremented or Decremented each time when Up arrow or Down arrow is clicked.
InterceptArrowKeys It is used to determine weather value in the NumericUpDown control can be increment or decrement using UP and DOWN arrow key or not. It has boolean value. Default value is true.
Maximum It is used to specify maximum value for the NumericUpDown Control.
Minimum It is used to specify minimum value for the NumericUpDown Control.
ReadOnly It is used to determine weather Numeric value in the NumericUpDown Control is ReadOnly or Not. It has boolean value. Default value is false.
     
Value It is used to Get or Set current value of NumericUpDown Control.
ThousandsSeparator It is used to determine weather thousands separator will be inserted after every three decimal digits or not. It has boolean value. Default value is false.
TextAlign It is used to set alignment of the Numeric value in the NumericUpDown Control. It can have one of the following three values: left,right or Center. Default value is left.
UpDownAlign It is used to set alignment of the UPDOWN arrow in the NumericUpDown Control. It can have one of the following two values: left,right. Default value is right.

Methods of NumericUpDown Control


Various Methods of NumericUpDown Control are:

Method Name Description
UpButton It is used to Increment the current value of NumericUpDown Control by the value specified in the Increment Property.
DownButton It is used to Decrement the current value of NumericUpDown Control by the value specified in the Increment Property.

Event of NumericUpDown Control


Various Events of NumericUpDown Control are:

Event Name Description
ValueChanged This event fires each time when the value in the NumericUpDown Control changed.

Download Projects


Download Programs