title: How can I use async to increase WinForms performance?
body: <p>i was doing some processor heavy task and every time i start executing that command my winform freezes than i cant even move it around until the task is completed. i used the same procedure from microsoft but nothing seem to be changed.</p>
  
  <p>my working environment is visual studio 2012 with .net 4.5</p>
  
  <pre><code>private async void button2_Click(object sender, EventArgs e)
  {
      Task&lt;string&gt; task = OCRengine();          
      rtTextArea.Text = await task;
  }
  
  private async Task&lt;string&gt; OCRengine()
  {
      using (TesseractEngine tess = new TesseractEngine(
             "tessdata", "dic", EngineMode.TesseractOnly))
      {
          Page p = tess.Process(Pix.LoadFromFile(files[0]));
          return p.GetText();
      }
  }
  </code></pre>