1234567891011
void Array_Population() { array<Button^, 2>^ btn = gcnew array<Button^, 2>(10, 10); for (int x = 0; x < 10; ++x) { for(int y = 0; y < 10; ++y) { btn[x, y] = button1; } } }
Button^ btn = (Button^) this->Controls["Button1"];
12345
for (int i = 1; i <= 100; i++) { String^ name = "Button" + i.ToString(); // use Controls[name]; }