Coffeehouse Post

Single Post Permalink

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

    Hi again, I have another problem that needs to be solved.
    How do you loop through a ListView and check if strName is the text of one item?

    Dim i As Integer
    For i = 0 To ListView1.Items.Count
       If ListView1.Items(i).Text = strName Then
          MsgBox "Matches"
       End If
    Next i

    Please help, I am getting mad about this.