NumericUpDown Control (Windows Forms)
Visual Studio .NET 2003
The Windows Forms NumericUpDown control looks like a combination of a text box and a pair of arrows that the user can click to adjust a value. The control displays and sets a single numeric value from a list of choices. The user can increase and decrease the number by clicking up and down buttons, by pressing the UP and DOWN ARROW keys, or by typing a number. Clicking the UP ARROW key moves the value toward its maximum; clicking the DOWN ARROW key moves the position toward the minimum. An example where this kind of control might be useful is for a volume control on a music player. Numeric up-down controls are used in some Windows control panel applications.
In This Section
- Introduction to the Windows Forms NumericUpDown Control
- Introduces the general concepts of the NumericUpDown control, which allows users to browse through and select from a list of numeric values.
- Setting and Returning Numeric Values With the Windows Forms NumericUpDown Control
- Describes how to test for the value of the control.
- Setting the Format for the Windows Forms NumericUpDown Control
- Describes how to configure how values are displayed in the control.
Related Sections
- Controls You Can Use On Windows Forms
- Provides a complete list of Windows Forms controls, with links to information on their use.
- NumericUpDown Class
- Provides reference information on the NumericUpDown class and its members.
- DomainUpDown Control (Windows Forms)
- Introduces a control similar to NumericUpDown, except that the DomainUpDown control displays string instead of numeric values.