title: No overload for 'insert_method_here' matches delegate 'System.EventHandler'
body: <p>I am trying to build a program that has a button, and everytime that button is clicked, it moves the button and adds to the score. However, I am trying to disable the Enter key, or suppress the command when pressed. Here is what I have so far</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e, KeyEventArgs k)
      {
          if (k.KeyCode == Keys.Enter)
          {
              k.SuppressKeyPress = true;
          }
          score = score + 10;
          timesClicked++;
          int rand1 = RandomNumber(1, 400);
          int rand2 = RandomNumber(1, 400);
          button1.Location = new Point(rand1, rand2);
          toolStripScore.Text = ("Your score is " + score);
          toolStripClicks.Text = ("You've clicked the button{0} times " + timesClicked);
          winCheck();
      }
  </code></pre>
  
  <p>This is what I added to prevent the enter key from going in.</p>
  
  <pre><code>if (k.KeyCode == Keys.Enter) { k.SuppressKeyPress = true; }
  </code></pre>
  
  <p>However it generates the error... "No overload for 'button1_Click' matches delegate 'System.EventHandler'" And when clicked to show the location, it opens the code for Form1.Designer and points to this this line. "this.button1.Click += new System.EventHandler(this.button1_Click);"</p>
  
  <p>Any help on resolving this issue would be much appreciated.</p>