title: Allow user to click on a Button of the form when Application is in Pause/Sleep Mode in C# winform Application
body: <p>I am working on a C# winform application which continuously navigates some links in a webbrowser control and process the data of that webpage. I need to provide two buttons on the form for Pause and Resume.<P>
  On click of button the whole application should get pause processing and after that on click of Resume button it should start again.<P>
  So to pause the application, on click of Pause button I made thread to sleep for infinite time by following code.</p>
  
  <pre><code>private void Pause_Click(object sender, EventArgs e)
  {
    System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
  }
  </code></pre>
  
  <p>But this piece of code unable the user to click on Resume Button on form to resume the application. Also I am not getting a perfect piece of code to resume the application on click of Resume Button.</p>
  
  <p>Can Anyone get me the correct solution for this issue ?</p>