Getting the listBox item at a given index location
Posted on 2004-11-21
I have trouble getting the object associated with the given index of a listBox, unles I explicitly set the index ahead of time.
For example, I need to ...
listBox.SeletedIndex = 1;
Object object = listBox.SelectedItem
The problem with this is that you can see the listBox scroll through the choices, and it looks dumb.
How do I simply get the item at a known index location.