title: create multiple background worker in vb.net
body: <p>i am writing a program with background worker , i am creating it dynamically but how can i add doWork code inside  each background worker in vb.net </p>
  
  <pre><code>For NumWorkers As Integer = 0 To 3
    NumWorkers = NumWorkers + 1
    ReDim Workers(NumWorkers)
    Workers(NumWorkers) = New BackgroundWorker
    Workers(NumWorkers).WorkerReportsProgress = True
    Workers(NumWorkers).WorkerSupportsCancellation = True
    AddHandler Workers(NumWorkers).DoWork, AddressOf WorkerDoWork
    Workers(NumWorkers).RunWorkerAsync()
  Next
   Private Sub WorkerDoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
   ' for first
   End SUb
  
    Private Sub WorkerDoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
   ' for 2nd
   End SUb
  
    Private Sub WorkerDoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
   ' for 3rd
   End SUb
  
    Private Sub WorkerDoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs)
   ' for 4th
   End SUb
  </code></pre>
  
  <p>i am confussing about last 3 workerDork() . how can i add the codes in it ??</p>