How to put arraylist in listbox

So I need help with the task, and I have been trying to solve it for more than a week, but I need help placing the arraylist inside the list.

http://i29.tinypic.com/ib9oiu.jpg What, in the end, should look like a GUI, all information should be stored in an arraylist; I would have to add a new customer; Click on a customer entry to edit it.

+3
source share
1 answer
List1.Items.Clear
List1.Items.AddRange(al1.ToArray)

OR

List1.Items.Clear
For each obj as object in al1
    List1.Items.Add(obj)
Next

Or

List1.Items.Clear
For i as Integer = 0 to al1.count-1
    List1.Items.Add(al1(i))
Next 

ToString Arraylist. listbox , (Courier New).
Generic.List( clsCustomer), , , arraylist.
, . .

+6

Source: https://habr.com/ru/post/1757001/


All Articles