title: C# how to loop while mouse button is held down
body: <p>Can you point me in the right direction? I'm trying to get a loop to trigger while the form button is depressed. </p>
  
  <pre><code>//pseudocode
  While (button1 is pressed)
  value1 += 1
  </code></pre>
  
  <p>And then of course stop looping when the button is released</p>