Quote Originally Posted by Goshx View Post
The breakpoint is triggered and listitem is removed correctly. It is some kind of mystery. During debugging everything is working fine ))))
No errors shown.
Then don't break - but do this instead...

Put a DEBUG.PRINT statement below the line indicated...

Code:
        If Trim(ListView1.ListItems(indx).SubItems(2)) = Trim(lblKliknutoNa.Caption) Then
            Debug.Print indx
            Debug.Print ListView1.ListItems.Count
            ListView1.ListItems.Remove (indx)
            Debug.Print ListView1.ListItems.Count
            indx = indx - 1
            lvredova = lvredova - 1
        End If
what number appears in the immediate window.