1
Answer

arrayList - ListBox, winform

Ask a question

I am having trouble removing the correct item from an listbox. The listbox is filled from an arrayList containing objects in the form :
custNr, custDescBuyC.Text, price.

My main problem is that in the listbox i do not know which item is which in the arrayList, how can I correct this?

The items in the list does not have an id and and the custNr can exist multiple times in the arrayList.

Can I spilt the string that shows in the listbox and from that match the object in the arrayList: How do I split the string in that case?


Answers (1)