Posts by Nelson Lopes • 1 point
1 post
-
0
votes4
answers479
viewsA: Remove object from an Arraylist
You can try using a for iterating from last position to first. for(int i = listVagas.Count-1;i >=0; i--) { if(listVagas[i].getBox() == Convert.ToInt32(consulta_box.Text)) { listVagas.RemoveAt(i);…