Try this:
listBox1.Items.Add("this");
listBox1.Items.Add("is");
listBox1.Items.Add("a");
listBox1.Items.Add("test");
string[] destination = new string[listBox1.Items.Count];
listBox1.Items.CopyTo(destination, 0);
That example uses the Items collection but the SelectedItems collection
work work just the same, it's the CopyTo function you should be looking
at.
Kelly S. Elias
Webmaster
http://devdistrict.com
Colin Williams wrote:
Hi
I am trying to pass the selected items from a multiselect listbox to a
string array. Can any body give me a start.
Thanks
Colin Williams