How do I get a string for a ListBox entry in C#
I am writing a test script in C# and need to a string for a particular index in the ListBox. The ListBox is the standard .NET ListBox control (1.1). In convention C# I would just do something like strEntry = ListBox.Items[x] (where x in the index of the item I wish). This does not appear to work in TC. I have tried get_Items and other methods, but nothing seems to work. I either get an exception or an undedined object. Can anyone shed any light on this please? How do I do this in C#Script?
Re: How do I get a string for a ListBox entry in C#
Never mind. I found it. I needed to do ["Items"]["Item"](x)["ToString"]().