title: Find a selected item in a ListBox
body: <p>Background: I have a list box that allows multiple selections.  There is a specific value in my List Box that, if selected, needs a separate code path to be run for it and all other selections go through another path.</p>
  
  <p>Problem: I can't figure out how to correctly write it in VB.NET to make it work the way I imagine it.</p>
  
  <p>Code:</p>
  
  <pre><code>    For Each Item As String In listbox1.SelectedItems
          If listbox1.SelectedItem = myValue Then
             Do this
          Else
             Do that
          End If
      Next
  </code></pre>
  
  <p>If I make multiple selections on my list the code doesn't work correctly. It only works correctly if myValue is the only selection in listbox1.</p>
  
  <p>Any suggestions?</p>