Hi Guys,

In my application i store number in a list box, the number of numbers vary depending on the user, normally 20 - 100, i have this code setup:

vb.net Code:
  1. For i = 0 To listviewNumbers.Items.Count
  2.  
  3. '// Perform operations on number then delete it.
  4.  
  5. Next

So when i retrieve a digit from the listview, i was going to use it, then delete it from the listview (so it wouldn't be used again)

I am having trouble getting the number from the listview to use, i can do listviewHarvestedIDs.SelectedItems(0).Text but that means the user has to select every number to use, i really need to select a numberautomatically (doesn't need to be in order) use it then delete.

any help would be appreciated

thanks guys

Graham