Link to home
Start Free TrialLog in
Avatar of pee_cee
pee_cee

asked on

Whats wrong here? (ListViewItemCollection and Item)

I'm having a problem with this code


ListView.ListViewItemCollection 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.ListView.ListViewItemCollection' does not contain a definition for 'Item'

I thought i was on the right lines, but whats up?
ASKER CERTIFIED SOLUTION
Avatar of PeteMc
PeteMc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pee_cee
pee_cee

ASKER

Sorted. Thanks.