How to select duplicates in a listbox ?

  • Thread starter Thread starter Mostafa Salaheldien
  • Start date Start date
M

Mostafa Salaheldien

Guest
Hello everyone,

i want to select all duplicates items in my listbox but its select all expect 1 i want to select all duplicates items in my list

For Row As Int16 = 0 To Listrate.Items.Count - 2
For RowAgain As Int16 = Listrate.Items.Count - 1 To Row + 1 Step -1
If Listrate.Items(Row).ToString = Listrate.Items(RowAgain).ToString AndAlso Listrate.Items(Row).ToString.Length = Listrate.Items(RowAgain).ToString.Length Then
Listrate.SetSelected(RowAgain, True)
End If
Next
Next
Thanks in advance

Continue reading...
 

Similar threads

M
Replies
0
Views
123
Mostafa Salaheldien
M
M
Replies
0
Views
123
Mostafa Salaheldien
M
D
Replies
0
Views
121
Danny Macwan
D
Back
Top