hi
i don't know where the problem
i have forum contain listview
i want change some value in this listview from class example
Public Class Test
Private Shared vidlist As Integer = 1
Public Shared Sub Hello()
Try
start:
If CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(1).Text) < CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(2).Text) Then
'..
ElseIf CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(1).Text) >= CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(2).Text) Then
frmMethod1.ListView2.Items.Item(vidlist).BackColor = Color.Green
frmMethod1.ListView2.Items.Item(vidlist).SubItems(3).Text = "Finished..."
vidlist = vidlist + 1
GoTo start
End If
Catch ex As Exception
End Try
End Sub
End Class
i get this error
invalidargument=value of "1" is not valid for 'index'.parameter name:index
class don't see any items in listview
any help?
thanks