This is driving me nuts! It seems so easy but it's just not working!
I'm using an array to see if the item is found in one listView and if it is, add it to another listView and delete the entry in the first. It works fine except for the deleting part. It works fine in the 1.1 framework, but gives and InvalidOperationException in the Compact Framework. Any ideas???
I'm using an array to see if the item is found in one listView and if it is, add it to another listView and delete the entry in the first. It works fine except for the deleting part. It works fine in the 1.1 framework, but gives and InvalidOperationException in the Compact Framework. Any ideas???
VB.NET:
For Each item As ListViewItem In todoListView.Items
If array.IndexOf(array, item.Text, 0, array.Length) <> -1 Then
doneItem = New ListViewItem(item.Text)
doneItem.SubItems.Add(item.SubItems(1).Text)
doneItem.SubItems.Add(item.SubItems(2).Text)
doneListView.Items.Add(doneItem)
todoListView.Items.Remove(item)
End If
Next
Last edited: