The code I originally posted was something my professor gave to us and later said, "Oh, this doesn't work". So, I don't even have to use that. I can start from scratch with the whole array thing. What I am trying to do is add x number of objects to a panel when I click a button. I then want to be able to reference them anywhere else in the code as individual object so I can easily change the properties.Originally Posted by SlyMaelstrom
like this:
picBlock[1]->BackColor = Color::Black;
picBlock[4]->Left = 100;
etc.
These item should appear in a panel in my program. The panel name is pnlGameField. And I just want to call each item picBlock[i].