title: Button disable and enable
body: <p>I have a vb.net based windows application, where when "GO" button is clicked a bunch of data is loaded into DB. So in my application as soon as "GO" button is clicked I want to just disable it and would like to enable it back when the uploading has completed.
  Now in my specific method for btnGo_Click() I have:</p>
  
  <pre><code>btnGo.Enabled = False
  </code></pre>
  
  <p>as first line and </p>
  
  <pre><code>btnGo.Enabled = True
  </code></pre>
  
  <p>as last line in the same method.</p>
  
  <p>But I fail to understand why the "GO" though appears as being disabled still allows click when processing is going on. Also if I remove the last line, it gets disabled permanently and doesn't allow the click event.</p>
  
  <p>Kindly suggest what am I doing wrong?</p>
  
  <p>Edit (Dated: 25th Jan 2012): I made changes as suggested by our collegues, but I am facing a new issue here. I am facing an issue where the textbox gets updated but not always. I have updated my textbox in "_ProgressChanged" event of the background worker thread. In my case if there is 10 records uploaded. Then there are 10 lines of updates that are expected in the texbox. But only few lines are shown in the textbox. Is it the repaint issue again? Kindly suggest...Because all other things are done as per your suggestion</p>