2010-12-06 58 views

Répondre

3
foreach (var listBoxItem in listBox.Items.Where(itemsToSelect.Contains)) 
{ 
    listBox.SelectedItems.Add(listBoxItem); 
}