Numeric edit control, Numeric edit control -11 – National Instruments Measurement Studio User Manual

Page 24

Advertising
background image

Chapter 2

Measurement Studio .NET Class Libraries

© National Instruments Corporation

2-11

Measurement Studio User Manual

Numeric Edit Control

Use the Measurement Studio numeric edit control, as shown in Figure 2-4,
to display numeric values and to provide a way by which end users can edit
numeric values. Typically, you use a numeric edit control to input or
display

double

numerical data instead of using a Windows Forms

TextBox or NumericUpDown control.

Figure 2-4. Numeric Edit Control in Engineering Format Mode

With the numeric edit control and the classes that interface with the control
you can perform the following operations:

Use up/down buttons for easy incrementing and decrementing.

Perform range checking.

Set the range to infinite maximums and minimums.

Create custom formats or use built-in numeric formats including
generic, engineering, and simple double.

Connect to a numeric control so that if you change the value of
one control, it changes the value of the other control.

Set the coercion mode property to discrete or continuous values. This
configures the control to allow entry or display of either a discrete set
of values or any value.

Set the interaction mode to keyboard and mouse, keyboard only,
mouse only, or none.

Use the edit box to select text programmatically and to validate text
values.

Tip

For more information about using the numeric edit control, refer to the NumericEdit

Class section in the NI Measurement Studio Help.

Advertising