This is a .Net question posted in the vb6 forum - i guess the mods will move this thread soon.

I've never done this but on the .net forum we discussed things like this just a couple of days ago. Search for "Control Arrays".

It appears that something like this may work. Create your picture boxes on your form picturebox1, picturbox2, picturebox3 etc

Then in your loop you can refer to them like this:-
for i = 1 to 7
me.controls("PictureBox" & i).image = someimage
next i

As I said, I've never done that before so the syntax may not be accurate but it may put you on the right track