Todd Vance

Todd Vance

  • NA
  • 60
  • 131.8k

How can I make an Array of PictureBoxes easily with placement on form?

Jun 2 2007 10:07 PM

Ok,  I want an Array of PictureBox's but use Visual Studio -- so here is what I am doing -- PLEASE tell me if there is a better way.

I drag all the pboxes out onto the canvas, then go into the designer.resx file and add the array, THEN I proceed to change all the names of the pboxes that I made to pbox[0], pbox[1], etc.

THE PROBLEM is that there are 7 or 8 properties per box, so for my 21 pboxes that I will have, I will have to follow this process for all of these properties!

I dont really know how to create the array and then manually assign it's position and all that NOR do I know all the properties that I need to setup for them .... SO is there a better way to do this?

Answers (2)