title: Capture mouse click event in c#
body: <p>I am trying to create a simple windows form applicaiton in c# which will count the right left clicks from the mouse event. I have copy the following code which detect the click event:</p>
  
  <pre><code>private void mouseClick(object sender, MouseEventArgs e)
  {
      if (e.Button == MouseButtons.Right)
      {
          Trace.WriteLine("Mouse clicked");
      }
  }
  </code></pre>
  
  <p>And in Form method I add <code>this.MouseClick += mouseClick;</code>. My issue is that this function activates every time a click is performed whether is right or left click. Why is that?</p>