i'm using this code to remove duplicates from a listbox

VB Code:
  1. For i = List1.ListCount - 1 To 1 Step -1
  2.       If List1.List(i) = List1.List(i - 1) Then
  3.           List1.RemoveItem i
  4.         End If
  5. Next i
and it works if the list's are small, but if i have over 1000 entries like i do normally, it doesnt remove duplicates.

any idea?