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.Quote:
Originally Posted by SlyMaelstrom
picBlock->BackColor = Color::Black;
picBlock->Left = 100;
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].