how to find duplicate items in listview?
Hello,
I'm need help; how to find duplicate items in listview?
Please help me :(
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hirendra SisodiyaPosted Dec 18, 2009, 12:31 AM
Dim tempitem As New ListViewItem
For Each tempitem In lst.Items
Dim count As Integer = 0
For i As Integer = 0 To lst.Items.Count
If tempitem.Text = lst.Items(i).Text Then
count = count + 1
If count >= 2 Then
MessageBox.Show("dupicate found- " & lst.Items(i).Text)
Exit For
End If
End If
Next
Next
thanks