here is part of my code if anyone wants to take a look and help please:
in sub:
path = "imgUp"
frmStuff.createImageBox (path)
path = "imgDown"
frmStuff.createImageBox (path)
--
in createImageBox(longName as String):
Set ctl = Controls.Add("VB.Image", localName, frmStuff)
With ctl
.Height = 400
.Width = 400
.Stretch = True
.Move 3480, 360, 1575, 375
.Picture = LoadPicture(path)
.Visible = True
End With
--
what happens is it creates the first one, ImgUp but then on the line when it calls createImageBox for the second time it says "there is already a control with the name imgDown" which is weird because i double-checked and the first image box created is clearly named imgUp