20-03-13, 06:10 PM
اتمنى ان يفيدك هذا
كود :
For i As Integer = 0 To ListBox1.Items.Count - 1
Try
Dim num As Integer = i
For t As Integer = 0 To ListBox1.Items.Count - 1
If t = num Then
Else
Try
If ListBox1.Items.Item(t) = ListBox1.Items.Item(i) Then
ListBox1.Items.RemoveAt(t)
End If
Catch ex As Exception
End Try
End If
Next
Catch ex As Exception
Exit For
End Try
Next