I need to run multiple task in the background using backgroundwoker
e.g dim mybacgroundwokers(10) as backgroundwoker
in the backgroundworker event procedure, can i do somthing like this, cos i don’t have an idea
mybackgroundwoker_dowork(,,index)
select case index
case 1
'dowork for backgroundworker1
case 2
'dowork for backgroundworker2
end select
or how do i handle multiple backgroundworker
if non of this is possible with the backgroundworker, how do i do this using thread multithreading?
thanks
You should use multiple Backgroundworkers with a suitable name, like:
If you absolutely want to use an Array, Visual Studio won’t help you with the DoWork Subs: