Coffeehouse Post

Single Post Permalink

View Thread: Help needed - Visual Basic .NET
  • User profile image
    gmiley

    Even simpler still:

    I like using the .IndexOf() method.

    Dim myItem As New ListViewItem("matchstring")

    ListView1.Items.RemoveAt(ListView1.Items.IndexOf(myItem))