G
Guest
How can I remove some selected items from the listBox in the run time ??
Dear sir :Morten Wennevik said:Hi mostafa atalla,
ListBox.SelectedObjectCollection s = listBox1.SelectedItems;
while(s.Count > 0)
listBox1.Items.Remove(s[0]);
The SelectedObjectCollection is directly tied to the listbox items and when you remove an item, the item is also gone from the collection.