NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programatically add items to an ExpressionEdit ComboBox?

Solved!
Go to solution
Items can be statically added using the ActiveX Properities/ComboBoxItems.  How can this be done programatically from C#?  I am using C# 2008 and TestStand 4.1.
0 Kudos
Message 1 of 3
(3,396 Views)
Solution
Accepted by skribling

You can use the ExpressionEdit.ComboBoxItems collection. It has methods for adding and removing items.

 

Hope this helps,

-Doug

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

Doug-

That was the answer.  I was missing an assembly reference which was why I wasn't able to use the ExpressionEdit.ComboBoxItems methods.  I had "NationalInstruments.TestStand.Interop.UI.AxControls" reference in my project but also needed to have "NationalInstruments.TestStand.Interop.UI" and "NationalInstruments.TestStand.Interop.Ui.Support" assemblies.  ExpressionEdit.ComboBoxItems.Insert() is working fine now.

 

Without your input, I wouldn't have gone back to examine my references.  Thanks.

0 Kudos
Message 3 of 3
(3,372 Views)