Network Device 374318A-01User Manual

Chapter 2 Measurement Studio Measurement Computing Edition .NET Class Libraries
Measurement Studio for MCC User Manual 2-18 ni.com
Tip For more information about using the Windows Forms numeric edit control, refer to
the NumericEdit Class section in the NI Measurement Studio Help.
Switch and LED Controls
Use the Measurement Studio switch and LED controls as Boolean controls
on a Windows Forms user interface. You typically use a switch control, as
shown in Figure 2-7, to receive and control Boolean input on an application
user interface.
Figure 2-7. Windows Forms Switch Control in Vertical Toggle 3D Style
You typically use an LED control, as shown in Figure 2-8, to indicate a
Boolean value on an application user interface.
Figure 2-8. Windows Forms LED Control in Square 3D Style
With the switch and LED controls and the classes that interface with the
controls, you can perform the following operations:
Receive notification before or after the state of the control changes.
Configure how the control behaves when you click it with the mouse
or press the spacebar when the control has focus.
Configure the appearance of the control.
Make the control background transparent.
Configure the LED control to blink while it is on or off and configure
the rate at which the LED control blinks.
Tip For more information about using the switch and LED controls, refer to the Using
the Measurement Studio Windows Forms Switch and LED .NET Controls section in the
NI Measurement Studio Help.