H
Heath P. Dillon
Hi,
I am trying build a form that has two list boxes, that allows the user to
move items from one to the other. Like when you have one list box full of
options, and you select the ones you want, and move them to the other
listbox.
to move items back or forth from one list box to the other I simply tried to
loop through the selected items of the listbox control. I then wanted to
remove the items from the listbox so that the user can not add again.
the problem is when I do a remove from the items collection of the list box,
I get the following error.
List that this enumerator is bound to has been modified. An enumerator can
only be used if the list does not change.
How do i remove the selected items from the listbox ??
I am trying build a form that has two list boxes, that allows the user to
move items from one to the other. Like when you have one list box full of
options, and you select the ones you want, and move them to the other
listbox.
to move items back or forth from one list box to the other I simply tried to
loop through the selected items of the listbox control. I then wanted to
remove the items from the listbox so that the user can not add again.
the problem is when I do a remove from the items collection of the list box,
I get the following error.
List that this enumerator is bound to has been modified. An enumerator can
only be used if the list does not change.
How do i remove the selected items from the listbox ??