Hmm, it seems that I haven't been able to get an answer on other forums that are just for programming so I'm hoping someone can help me out here. I'm running a large operation that add's hundreds to thousands of items to a listview, however, in order to reduce lag and allow for usability, I've added a background worker to do the job. The only problem is that the background worker can't directly interact with the main thread, and I need to be able to create an array of listviewitems, so I can declare them in the BGW and then when it's work finishes, add them to the listview finally.
This is the code that I have now, but it doesn't allow me to do this:
Code: Select all
Dim FileChunk(10000) As New ListViewItem()
Dim ItemChunk(10000) As New ListViewItem()
Dim CrapChunk(10000) As New ListViewItem()
Any help on how I could create an array that would work like you'd imagine this one too would be greatly appreciated
