Sending a variable in a C# EventHandler?
<p>How can I send a variable with a newly created EventHandler? 
The code I have is something like:</p>

<pre><code>for (int i = 0; i &lt; 5; i++)
{   
    Button buttonX = new Button();
    buttonX.Location = new Point(0, 0 + offset);
    buttonX.Size = new Size(310, 48);
    buttonX.Click += new EventHandler(buttonClick);
}

private void buttonClick(object sender, EventArgs e)
{
    MessageBox.Show();
}
</code></pre>

<p>How can I can make it like</p>

<pre><code>buttonX.Click += new EventHandler(buttonClick , i);

private void buttonClick(object sender, EventArgs e, int i)
{
    MessageBox.Show(i.toString());
}
</code></pre>
