This seems to be quite easy but I’m having a problem about this right now.
What I want to do is look for a specific entry in the second column of my list view and then if that specific entry if found, remove the row where that entry is found.
Here’s my code:
Dim lvSubItems As ListViewItem.ListViewSubItem
For Each lvSubItems In lvConnectedClients.Items(lvConnectedClients.Items.Count - 1).SubItems
If lvSubItems.Text = CType(clientSocket.Client.RemoteEndPoint, IPEndPoint).Address.ToString Then
' This is not the correct way.
lvConnectedClients.Items.Remove(lvSubItems)
End If
Next
Thanks in advance!
or