I have a listbox being populated from a SQLDATA pull, and it pulls down some columns that i dont want like OBJECT_dfj, OBJECT_daskd. The key is all of these being with OBJE
You can't use an enumerator, you have to loop using an index, starting at the last item:
for (int n = listBox1.Items.Count - 1; n >= 0; --n) { string removelistitem = "OBJECT"; if (listBox1.Items[n].ToString().Contains(removelistitem)) { listBox1.Items.RemoveAt(n); } }