29-06-14, 05:18 AM
وعليكم السلام ورحمة الله 
وأنت بخير أخي
تفضل أخي .. إن شاء الله هذا يكون طلبك
مرفق تصحيح الكود

وأنت بخير أخي

تفضل أخي .. إن شاء الله هذا يكون طلبك
كود :
Private Sub Deleted()
Dim ItemsToDelete As New List(Of Integer)
For I As Integer = 0 To ListBox1.Items.Count - 1
For J As Integer = I + 1 To ListBox1.Items.Count - 1
If Not ItemsToDelete.Contains(J) Then
If LCase(ListBox1.Items(I)) = LCase(ListBox1.Items(J)) Then
ItemsToDelete.Add(J)
End If
End If
Next
Next
Dim Count As Integer = 0
For Each I As Integer In ItemsToDelete
ListBox2.Items.Add(ListBox1.Items(I - Count))
ListBox1.Items.RemoveAt(I - Count)
Count += 1
lblFileName2.Text = "Deleted: " & Count
Next
End Subمرفق تصحيح الكود
