Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9149599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:29:57+00:00 2026-06-17T11:29:57+00:00

This seems to be quite easy but I’m having a problem about this right

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:29:57+00:00Added an answer on June 17, 2026 at 11:29 am
     For Each lvSubItems As Object In ListView1.Items
                If lvSubItems.Text = "test" Then
                    ListView1.Items.Remove(lvSubItems)
                End If
     Next
    

    or

    For Each lvSubItems As ListViewItem In ListView1.Items
    
            If lvSubItems.SubItems(1).Text = "1" Then
                ListView1.Items.Remove(lvSubItems)
            End If
        Next
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This seems like it should be easy, but I can't quite find an explanation
So this seems like it should be easy, but I can't quite figure out
This seems like it should be really easy but I've been having trouble with
Currently my urls look like this: www.mysite.com/venues/<venueid>/<venuename> e.g. www.mysite.com/venues/342/myvenue it's quite easy creating a
This seems non-trivial (it gets asked quite a lot on various forums), but I
This seems like something that could be quite useful and yet and I can't
Because this is my first attempt at an extension method that seems quite useful
This method that draws my tiles seems to be quite slow, Im not sure
I've been trying to figure this out for quite some time, and it seems
Can anyone recreate this issue? It seems to me like a quite serious bug

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.