title: Form doesn't update while running button click event
body: <p>I'm trying to update a progress bar at the end of each method in Visual Basic, the problem is that label1.Text does not update itself at the start at each method but will update.</p>
  
  <pre><code>Public Class Form2
  
      Private Const METHOD_COUNT = 4
  
      Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
          ProgressBar1.Maximum = METHOD_COUNT
      End Sub
  
      Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
          Method_One()
          Method_Two()
          Method_Three()
          Method_Four()
      End Sub
  
      Private Sub Method_One()
          Label1.Text = "Loading Method One"
          ProgressBar1.Value += 1
          'Threading.Thread.Sleep(1000)
      End Sub
  
      Private Sub Method_Two()
          Label1.Text = "Loading Method Two"
          ProgressBar1.Value += 1
          'Threading.Thread.Sleep(1000)
      End Sub
  
      Private Sub Method_Three()
          Label1.Text = "Loading Method Three"
          ProgressBar1.Value += 1
          'Threading.Thread.Sleep(1000)
      End Sub
  
      Private Sub Method_Four()
          Label1.Text = "Loading Method Four"
          ProgressBar1.Value += 1
          'Threading.Thread.Sleep(1000)
      End Sub
  End Class 
  </code></pre>
  
  <p>So basically when you run this, it will execute and update the progress bar nicely, but the label does not update. I think it might have something to do with multithreading and the fact the form does not get a constant update.</p>