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?
Loading

Todd VancePosted Jun 6, 2007, 11:02 AM
hari kondlapudiPosted Jun 5, 2007, 3:41 PM
// Declare them this way PictureBoxes =
new List<PictureBox>();System.Collections.Generic.List
// Add them this way
PictureBoxes.Add(pictureBox1);
PictureBoxes.Add(pictureBox2);
PictureBoxes.Add(pictureBox3);
// Use them as array any where in you .cs filePictureBoxes[1].Visible = true;