title: Display item from a listbox in msgbox
body: <p>I would like my code to search through a listbox looking for "QB". Once found display message then stop. Write now my code continues to search through the listbox after. How can i change the way that i am searching the listbox?</p>
  
  <pre><code>Private Sub btnQB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnQB.Click
  　
  For i As Integer = 0 To lstPlayers.Items.Count - 1
  
      Dim txt = lstPlayers.Items(i).ToString()
  
        If txt.Contains("QB") Then
  
             MessageBox.Show(lstPlayers.Items(i))
  
        Else
             MessageBox.Show("No Listed Quaterbacks")
  　
  End If
  
  Next
  </code></pre>