title: C# Stop Button From Gaining Focus on Click
body: <p>I have several buttons that when clicked I don't want them to get focus nor do I want the space bar to 'press' them again. </p>
  
  <p>I want the same functionality as the buttons in windows calculator. </p>
  
  <p>Googled and searched stack everything seems to be about forms eg. <a href="https://stackoverflow.com/questions/2423234/make-a-form-not-focusable-in-c">Make a form not focusable in C#</a></p>
  
  <p>I know I'm supposed to rewrite WndProc but not exactly sure how to proceed as to what messages I should catch/ignore etc. As far as I got:</p>
  
  <pre><code>protected override void WndProc(ref Message m)
      {
          base.WndProc(ref m);
      }
  </code></pre>