Remove Items from List Box

  • Thread starter Thread starter Lit
  • Start date Start date
L

Lit

Hi,

what is the best way of removing multiple items from a list box found in
another list box.

Foreach does not allow you to modify itself

Looping through has index issues.

Other than copying to new instance what gives?

thanks,

Lit
 
Inline...


Lit said:
Hi,

what is the best way of removing multiple items from a list box found in
another list box.

Foreach does not allow you to modify itself

Why not?
Looping through has index issues.

Only that you have to use 2 indexes.
Other than copying to new instance what gives?

Nothing, it just sounds like you don't want to do what is needed.
 
Hi Scott,

You don't understand at all, or have no clue what the problem is.
Try a foreach and delete from the collection itself. It does not work.

It looks like the selected item approach will do it

thank you for your time

Lit
 
Back
Top