No overload for 'pnlArr_Click' matches delegate 'System.EventHandler'
<p>Just starting out on C# and I keep getting stuck on this particular piece code (more precisely the <code>lblArr[i, j].Click += pnlArr_Click;</code> line):</p>

<pre><code>public void CreateLabelArray(int height, int width, int nrofShips)
    {
        pnlBase.Controls.Clear();
        lblArr = new Label[height, width];
        int xpos = 0;
        int ypos = 0;

        for (int j = 0; j &lt; width; j++)
            {
            int column = j + 1;
            for (int i = 0; i &lt; height; i++)
                {
                Coordinaat pos = new Coordinaat();
                pos.X = j;
                pos.Y = i;
                lblArr[i, j] = new Label();
                lblArr[i, j].Left = xpos;
                lblArr[i, j].Top = ypos;
                lblArr[i, j].Width = 35;
                lblArr[i, j].Height = 35;
                lblArr[i, j].Tag = pos;
                lblArr[i, j].Click += pnlArr_Click;
                lblArr[i, j].BackColor = System.Drawing.Color.LightBlue;
                lblArr[i, j].BorderStyle = BorderStyle.FixedSingle;

                pnlBase.Controls.Add(lblArr[i, j]);
                xpos += 0;
                ypos += lblArr[i, j].Height;

                }
            xpos += 35;
            ypos = 0;
            }
    }
</code></pre>

<p>As I am trying to find out what particular mouse button was pressed on a label in an array, I thought this method might work:</p>

<pre><code>public int pnlArr_Click(object sender, MouseEventArgs e)
</code></pre>

<p>The error goes away if i change MouseEventArgs to EventArgs, but then this won't work anymore:</p>

<pre><code>if (e.Button == MouseButtons.Left)
</code></pre>

<p>Any ideas? all help is much appreciated.</p>
