You can get a list of the PictureBoxes in the Controls collection using the linq extension method OfType. Then sort the list to get them in name order. ... You should only need to do this once, in the form constructor after the Initialize method.
Hi, Bountyhuntr, welcome at daniweb :)
Perhaps this C# snippet can solve your problem.
I don't think that will help me as I need to access the correct picturebox which matches the current counter in the loop, i.e on the 3rd loop it needs to be the 3rd textbox which is why I chose the names for the textbox, hoping I could access the textbox number which corrisponds to the counter.