Add to ArrayList

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello. I wish to add the selectedItems in a listbox to an arrayList, so I
can loop through the arrayList and perform some processing. Any ideas how I
can add selected Items to arrayList?
 
Toco said:
Hello. I wish to add the selectedItems in a listbox to an arrayList, so I
can loop through the arrayList and perform some processing. Any ideas how
I
can add selected Items to arrayList?\

ArrayList arr = new ArrayList(listBox1.Items);

or loop through the items and add one at a time to the arraylist.
 
thanks that got me what I needed

Michael C said:
ArrayList arr = new ArrayList(listBox1.Items);

or loop through the items and add one at a time to the arraylist.
 
Back
Top