backgroundworker in a loop
I am trying to use a backgroundworker in a loop. After the first time thru the loop, the backgroundworker skips over the code in DoWork and goes directly to RunWorkerCompleted as if it needs to bereset for the next pass thru the loop. Is there a way around this?
for i = 1 to max
BackgroundWorker1.RunWorkerAsync(TablesCount)
'while waiting for the BackgroundWorker to finish WhileMe.BackgroundWorker1.IsBusy 'keep form responsive during the asynchronous operation.Application.DoEvents()
EndWhilenext i

