You're clearing your list. When intListCountF has the same value as
intListCountB, you're removing the item. Since you will get to *every* value
in the list in both For loops, you will remove *everything*. Eventually
you're left with a list containing zero items.
Try something like this (untested air code):
For intListCountF As Integer = 0 To frmPlayer.Listbox1.ListCount - 2
For intListCountB As Integer = frmPlayer.Listbox1.ListCount - 1 To _
intListCountF + 1 Step -1
If frmplayer.Listbox1.List(intListCountB) = _
frmPlayer.Listbox1.List(intListCountF) Then
frmplayer.Listbox1.RemoveRow(intListCountB)
End If
Next
Next
--
- Can we talk about this next week?
- Just one more thing...
- Is it next week already?!