title: Change cursor using User32.dll
body: <p>I have a login form that disappears when logged in, a few moments later will the Main form be shown.</p>
  
  <p>Now I want to show a <strong>waitcursor</strong>, when there is no form on screen.
  I tried setting the cursor at the Login button click as follow:</p>
  
  <pre><code>this.Cursor = Cursors.WaitCursor;
  </code></pre>
  
  <p>And</p>
  
  <pre><code>this.Cursor.Current = Cursors.WaitCursor;
  </code></pre>
  
  <p>Both didn't work.</p>
  
  <p>I Googled for this problem and the answers I get is: Use the <strong>User32.dll</strong> to set the Cursor. Okay fine, but I can't find any good documentation about how to change the cursor. Can someone give me an example, about how to change the cursor using the <strong>User32.dll</strong>?</p>
  
  <p>Thanks in advance!</p>