title: Async & Await to determine when button disable event completed
body: <p>I am trying to use Async and Await to enable a task only when a button disable event has completed.</p>
  
  <p>I tried using:</p>
  
  <pre><code>   protected async void btnStart_Click(object sender, EventArgs e)
      {
          tskDisabled = DisableButton();
          int result = await tskDisabled;
          if (result == 1)
              FilesCount();
      }
  
      private async Task&lt;int&gt; DisableButton()
      {
          btnStart.Enabled = false;
          await Task.Delay(1000);
          return 1;
      }
  </code></pre>
  
  <p>I want to start the FilesCount() method only when the button btnStart is disabled.</p>
  
  <p>At present, the task starts but button remains enabled.</p>