VB.NET Technology

VB.Net Projects

VB.Net Project 1

NumericUpDown Control
Previous Home Next
adplus-dvertising

This 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 numeric value can be incremented or decremented by clicking the up or down buttons of the control. The user can also enter in a value.

NumericUpDown control is controlled by four integer properties:

  • Minimum, Maximum - Both defines the minimum and maximum values of the control

  • Value - This shows the current value of the control.

  • Increment - 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.

ValueChanged Event

This event occurs Value property can be changed in code, by clicking the up or down button, or by the user entering a new value that is read by the control. The new value is read when the user hits the ENTER key or navigates away from the control. If the user enters a new value and then clicks the up or down button, the ValueChanged event will occur twice.

Previous Home Next