pee_cee
asked on
Whats wrong here? (ListViewItemCollection and Item)
I'm having a problem with this code
ListView.ListViewItemColle ction tracksOnComputer = this.locationFilesListView .Items;
//get the item in the list at position 1
ListViewItem selectedTrack = tracksOnComputer.Item(1);
When i compile this, i get:
'System.Windows.Forms.List View.ListV iewItemCol lection' does not contain a definition for 'Item'
I thought i was on the right lines, but whats up?
ListView.ListViewItemColle
//get the item in the list at position 1
ListViewItem selectedTrack = tracksOnComputer.Item(1);
When i compile this, i get:
'System.Windows.Forms.List
I thought i was on the right lines, but whats up?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER