Hi I’m trying to see the elements of an array in a listbox, my array is in a class, but I dont know how to see the elements of the array in a windows form listbox.
This is my code:
NumSepaERG[0] = Convert.ToDouble(columnas[1]);
ListBox listbox2 = new ListBox();
listbox2.Items.Add(NumSepaERG[0]);
But I know how view the elements in the listbox.
if you have array as items then you can use AddRange method as:
Update
create object of your class which contain array…
e.g. :