Jay

Jay

  • NA
  • 48
  • 0

Populate an Array with Items in a ListBox

Jan 16 2009 11:39 AM

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)