From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

switchstyle on controlarray

I would like to change the switchstyle (from VERTICALTOGGLE to PUSHBUTT0N3D) in a SwitchArray.  I can do that with at design time but I can't seem to find out how to do it at run time (i.e., programmatically).

 

Attached is a VB.net project that creates a 8 × 4 LED or Switch matrix.  I'd like the switchs to be PUSHBOTTTON3D.

 

Thanks.

0 Kudos
Message 1 of 2
(4,909 Views)

Hi,

 

After looking through the documentation, it does not look like there is a way to change the “Switch Style” programmatically.  As an alternative, you might consider creating multiple SwitchArrays with different Switch Styles, placing them on top of each other on the panel, and then changing which one is in focus.

 

 

Regards,

0 Kudos
Message 2 of 2
(4,892 Views)