Switch and led controls, Figure 2-6. led control in square 3d style, Switch and led controls -12 – National Instruments Measurement Studio User Manual

Page 25

Advertising
background image

Chapter 2

Measurement Studio .NET Class Libraries

Measurement Studio User Manual

2-12

ni.com

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-5, to receive and control Boolean input on an
application user interface.

Figure 2-5. Switch Control in Vertical Toggle 3D Style

You typically use an LED control, as shown in Figure 2-6, to indicate a
Boolean value on an application user interface.

Figure 2-6. 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 Switch and LED .NET Controls section in the NI Measurement
Studio Help.

Advertising