I wonder if there is any way to write the following code a lot shorter...
public PictureBox pb1;
public PictureBox pb2;
public PictureBox pb3;
.....
public PictureBox pb50;
And then, is there any way to add all those variables to a list, without having to perform the same ugly code again.
listPB.add(pb1); listPB.add(pb2);...... ListPB.add(pb50);
The method I use is really dumb and I hoped that there were some other way to do it. Thanks for the help!