Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the bindings of a LED control at runtime in VB.Net?

I am using a LED control in my application that I have bound to a binding in a DataSocketSource control.  Based upon user input, I would like to change the LED binding to another binding within the DataSocketSource control at runtime.  Is there a way to do this and if so, how can it be done?
 
Tony
0 Kudos
Message 1 of 2
(3,150 Views)

Just to resolve this thread, the DataBinding is a read-only property. You can use the add and clear methods to edit the DataBinding collection; however, the DataBinding property itself cannot be modified directly at run-time.

As a workaround, you can create several LED's, each with a different binding. You can then activate the necessary LED based on the user input. It's definitely not the cleanest solution, but it will work.

Matt M
NI

0 Kudos
Message 2 of 2
(3,132 Views)