title: access more components using a thread
body: <p>I am trying to access a few component using a thread. My form looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/GsxhP.png" alt="enter image description here"></p>
  
  <p>my source looks like this:</p>
  
  <pre><code>   Private Sub btnGO_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGO.Click
        pbAction.Value = 0
        bgwProcess.RunWorkerAsync()
        Me.Cursor = Cursors.WaitCursor
     End Sub
  
     Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Application.Exit()
     End Sub
  
     Private Sub bgwProcess_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles bgwProcess.DoWork
        'a job consists in retrieving data, populating a listview and update the progressbar
        'start job 1.1
        'do job 1.1 -&gt; ProgressBar1.value+=1
        'do job 1.2 -&gt; ProgressBar1.value+=1
        'do job 1.3 -&gt; ProgressBar1.value+=1
  
        'start job 2.1 ProgressBar1.value=1
        'do job 2.1 -&gt; ProgressBar2.value+=1
        'do job 2.2 -&gt; ProgressBar1.value+=1
  
     End Sub
  
     Private Sub bgwProcess_RunWorkerCompleted(ByVal sender As System.Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles bgwProcess.RunWorkerCompleted
        Me.Cursor = Cursors.Default
     End Sub
  </code></pre>
  
  <p>Can anyone help me out?</p>