vb.net Code:
  1. For Each item As Object In myListBox.Items
  2.     MessageBox.Show(myListBox.GetItemText(item))
  3. Next
As the name suggests, GetItemText gets the text for an item. What you do with that text, i.e. String object, is up to you.