Hi Robin,
Try this and I haven't compiled it...
Dim lvi as listviewitem = listview.items(i)
Edit the item and then use the replace method to replace the unedited item with the new one.
Robin,
Are you using VB6 and the Listview control from that? If memory serves me correctly, the listitems and subitems are 0 based collections. So if you have 3 columns, they should be indexed 0-2.
VB6:
Debug.Print ListView1.ListItems(0).SubItem(0).Text
Debug.Print ListView1.ListItems(0).SubItem(2).Text
If you are using Visual Basic 2005, then you need to change your code since the new control has an Items collection, not a ListItems collection. Here is code for .Net.
VB2005:
Debug.Print(ListView1.Items(0).SubItems(0).Text)
ListView1.Items(0).SubItems(0).Text = "foo"
Adam Braden
Visual Basic Team