2
Answers

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

Ask a question
Todd Vance

Todd Vance

17y
4.9k
1

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)