title: how to deal with the task in progress
body: <p>In my C# program there is a "Login" function. When user presses on the button - program uses given login/pas info to login on a certain website using POST url and to save cookies. The webpage after login is then further processed in my program. Then, the result is shown to the user.</p>
  
  <p><strong>The problem is - the moment user clicks on a button - whole program hangs up and is waiting until operation from above is accomplished. That's about 3-5 seconds of inactivity.</strong></p>
  
  <p>I'd like to block user input during that time and to prompt with the message, for example "working...". Othervise there is no way to tell is the program is actually working on something or not. Here's what I mean:</p>
  
  <p><img src="https://i.stack.imgur.com/1TPMI.png" alt="enter image description here"></p>
  
  <p>What techniques should I use to achieve the desired goal?</p>