Posted By

leonbda on 01/21/09


Tagged

remove item ListBox


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


Listbox - Remove item


 / Published in: C#
 

  1. for (int i = 0; i < MyListBox.Items.Count; i++)
  2. {
  3. if (MyListBox.Items[i].Selected)
  4. {
  5. MyListBox.Items.Remove(MyListBox.Items[i]);
  6.  
  7. }
  8. }

Report this snippet  

You need to login to post a comment.