C# sample code: How to retrieve all items from a listbox

foreach (string strItem in lstMyFruits.Items)
{
    MessageBox.Show (strItem);
}

No comments: