title: Progressbar freezing while the other form loading
body: <p>I have 3 form ;</p>
  
  <p>Form1 - Main Form</p>
  
  <p>Form2 - Sub form ( contains progress bar and timer)</p>
  
  <p>Form3 - Sub form with heavy contains which takes time for loading ( like parsing data from webpage and writing it to Datagridview at form load event)</p>
  
  <p><strong>I need to show form2 with a progress bar running while form3 is loading</strong></p>
  
  <p>I have following codes at Form1 ;</p>
  
  <pre><code>Me.Hide
  Form2.Show()
  Form3.Show()
  </code></pre>
  
  <p>codes from Form 2 ;</p>
  
  <pre><code>Public Class Form2
  Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
      LoadingTimer.Enabled = True
  End Sub
  
  Private Sub LoadingTimer_Tick(sender As Object, e As EventArgs) Handles LoadingTimer.Tick
  
      If MyProgressBar.Value &lt;= MyProgressBar.Maximum - 1 Then
          MyProgressBar.Value += 10
      End If
      If MyProgressBar.Value = 100 Then
          LoadingTimer.Enabled = False
          Me.Close()
      End If
      If Label1.ForeColor = Color.LimeGreen Then
          Label1.ForeColor = Color.White
      Else
          Label1.ForeColor = Color.LimeGreen
      End If
  End Sub
  End Class
  </code></pre>
  
  <p><strong>The problem is progress bar starting but freezing at the beginning while Form3 is loading</strong></p>
  
  <p>Any idea for solution?</p>