{ /*---now cycle through the selected items collection and send them to the other list box. SelectedItems is created for us when the program runs by the listbox itself...it keeps track of what they chose. Then all we have to do is to read through that list and do something with them. This SelectedItems Collection is only available to us at run-time. Not design time. */ for each (String^ myItem in lstItems->SelectedItems) { if (lstPurchased->Items->Contains(myItem) == false) //avoid duplicates lstPurchased->Items->Add(myItem); } }