With Control Add Listbox I can add the content of an array to the listbox at the time the listbox is created.
But after that, I have to use a loop to add the contents of an array to the listbox.
Is there a command I've missed that will let me add an entire array to the listobx - after I've created it?
If the listbox is empty, I can delete it, then recreate it with the array inserted in just a line of code. But if it's not empty that won't work without recreating all of the entries.
Granted, the loop is trivial - just 3 lines of code - but it seems like this would be a common enough task that there would be an existing function somewhere that does it for me.
I didn't see anything at MSDN that would do it.
But after that, I have to use a loop to add the contents of an array to the listbox.
Is there a command I've missed that will let me add an entire array to the listobx - after I've created it?
If the listbox is empty, I can delete it, then recreate it with the array inserted in just a line of code. But if it's not empty that won't work without recreating all of the entries.
Granted, the loop is trivial - just 3 lines of code - but it seems like this would be a common enough task that there would be an existing function somewhere that does it for me.
I didn't see anything at MSDN that would do it.
Comment