title: How to Loop through Listview items
body: <p>I need some kind of loop, I think, to put into a variable for inclusion in access db. The problem I have at the minute is that with the code I am using, it gets the first value and if I click on another item, it retains the old value and dosen't update with new value. </p>
  
  <p>How can I create a loop that will store the values from selected items. Thanks</p>
  
  <pre><code>           With lvSelectedItems.Items
  
                  Dim username As String = .Item(0).Text
                  Dim session As String = .Item(0).SubItems.Item(1).Text
  
                  output = username + " : " + session
                  MessageBox.Show(output)
              End With
  </code></pre>