From: Toco on 6 Jun 2006 10:46 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?
From: Michael C on 6 Jun 2006 10:57 "Toco" <Toco(a)discussions.microsoft.com> wrote in message news:ECF152EE-4446-47E6-94B9-125C27CE59E6(a)microsoft.com... > 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.
From: Toco on 6 Jun 2006 11:38 thanks that got me what I needed "Michael C" wrote: > "Toco" <Toco(a)discussions.microsoft.com> wrote in message > news:ECF152EE-4446-47E6-94B9-125C27CE59E6(a)microsoft.com... > > 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. > > >
|
Pages: 1 Prev: Insert an Image to a dataGridView column Next: Webserver certificate |