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

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

Post a Comment

0 Comments