C#.net

for (int i = 0; i < listBoxName.Items.Count; i++)
{
MessageBox.Show(listBox1.Items[i].ToString());
}


Vb.net 2008