title: how to count listbox items while running a for each loop in vb.net?
body: <p>I have a list of links and need to check some data in it. </p>
  
  <p>i placed all the list in a listbox and each item is verified for some result</p>
  
  <p>now i want to see how many items are processed and how many are still need to process</p>
  
  <p>Example: in a label it must display total count of items and items completed and it must change once a item is finished.</p>
  
  <p>over view of my code is:</p>
  
  <pre><code>Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  </code></pre>
  
  <p>For Each item In ListBox2.Items
  !!!!==== MY CODE====!!!!
  Next Item
  End Sub</p>
  
  <p>Once an item is finished label must change the count.</p>