Click to See Complete Forum and Search --> : [RESOLVED] c# list box index howto


DARTHTAMPON
05-12-2006, 01:37 PM
I have a list box that has a dynamic set of entries. The problem I am having though is that I need to get what index each selected item is.



for (z=0;z<this.lstFiles.SelectedItems.Count;z++)
index = //how do I get the index value of the current selected item.

sirpelidor
05-12-2006, 01:49 PM
this.lstFiles.SelectedIndex