hello, ahm, can somebody help me, i'm always getting this error
InvalidArgument=Value of '25' is not valid for 'index'.
Parameter name: index
this is my code:
Dim currrentRow As Integer
currrentRow = lv2T1.Items.Count()
If compare(lv1T1.Items(currrentRow).SubItems(2).Text, txt2T1.Text) = True Then
Dim lv As ListViewItem
lv = lv2T1.Items.Add(txt1T1.Text)
lv.SubItems.Add(txt2T1.Text)
txt1T1.Text = ""
txt2T1.Text = ""
txt1T1.Enabled = True
txt2T1.Enabled = False
txt1T1.Focus()
End If
If lv2T1.Items.Count = 25 Then
txt1T1.Enabled = False
txt2T1.Enabled = False
btnStopT1.Enabled = True
btnPauseT1.Enabled = False
Timer1.Stop()
btnNxtT1.Enabled = True
End If