3
Answers

Populate an Array with Items in a ListBox

Jay

Jay

15y
31.9k
1

Hi Everyone,

I was hoping someone could help me.  I need to take all the items I have in a list box and input them into an array.  I have the array set up but I don't know how to put each item in the array. I already have....

int itemsCount = itemsListBox.Items.Count;

string[] items = new string[itemsCount];

But I am stuck here. 

Any info will be greatly appreciated.

Thanks in advance!

Jay

Answers (3)