title: C# changing EventArgs for method
body: <p>I am developing a Windows Forms application, and I would like to pass to the <code>MouseClick</code> event on <code>Picturebox</code> a parameter of type <code>MouseEventArgs</code> instead of <code>EventArgs</code>, but the debugger yells an error for delegate when I do so.</p>
  
  <pre><code>void PictureBox1Click(object sender, MouseEventArgs e)
  {
      // Some code
  }
  
  ///////
  // imageBox
  // 
  this.imageBox.Location = new System.Drawing.Point(12, 12);
  this.imageBox.Name = "imageBox";
  this.imageBox.Size = new System.Drawing.Size(1758, 829);
  this.imageBox.TabIndex = 0;
  this.imageBox.TabStop = false;
  this.imageBox.Click += new System.EventHandler(this.PictureBox1Click);
  // 
  </code></pre>
  
  <p>Thanks in advance, Jackob</p>