Question Copy a Picturebox?

tesseract

Member
Joined
Jul 3, 2008
Messages
13
Programming Experience
3-5
I have made an arraylist of controls because i want them to be generated at random times in unknows amounts... but its all pictureboxes just different colors. anyway i have the 5 base pictureboxes already made like a key on the side of my form and it would seem easy enough to take them and copy them into my arraylist then just manipulate the copys so my key will remin at the base state and the rest will be different and i tryed this

VB.NET:
BrickArray.add(picbox1)

but that just adds the original, i want a copy! something like this in proper syntax

VB.NET:
BrickArray.add(new picbox1)

but that doesnt work any tips?
 
Back
Top