Easy, depending on what type you saved:
foreach (MyItemType item in listBox1.SelectedItems)
{
...
}
Since this is an older, non-general collection, it is best not to use varan element variable to declare. This will give you a type link object.
You can also use other properties, for example:
if (listBox1.SelectedItems.Count > 0)
...
source
share