Notice that the Button_MouseClick event has both a sender and eventarg. The sender IS the button, so you can just examine the properties of the button, such as the Name to figure out which button was pressed. If you have an array, then map the button name to the array index in a hashtable
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show((sender as Button).Name);
}