I have a matrix of 9x9x9 buttons on my form, labelled 1 through to 9 for the
first lot, and 1 ~ 9 for the second, and so on.
The buttons are made invisible when clicked. The code I use is:

private void button11_Click(object sender, EventArgs e)
{
button11.Visible = false;
}

private void button12_Click(object sender, EventArgs e)
{
button12.Visible = false;
}


etc etc

Question: After designing the form I now have to manually paste the line
buttonxx.Visible = false; for each button and change the xx to the corresponding button number.
9x9x9 = 700plus cut and paste actions. A lot of work, and oh so boring.
Is there an easier way, like a mass paste. In MS Excel for instance, if
you copy a formula into multiple fields, it automatically adjusts the cell numbers.
Would be nice if that works in my case and automatically numbers the
700 buttons.

Rgds, Andreas