level 9
Dim iii As Integer = 0, arl As New ArrayList
Do Until iii = Me.ListBox1.Items.Count
Dim str As String = Me.ListBox1.Items(iii)
If arl.IndexOf(str) <> -1 Then
Me.ListBox1.Items.RemoveAt(iii)
Else
arl.Add(str)
iii += 1
End If
Loop
arl.Clear()
arl = Nothing
我写个笨方法
2012年10月21日 16点10分