Hi, I'm making my own Subroutine where I'm passing in a control array of pictureboxes but I'm lost as to how to do it. The picturebox name will change, I have many control arrays of pictureboxes on my form. I thought something like this.
and calling it like this:Code:Sub MySub(ByRef picBox1() as PictureBox) 'Code End Sub
But that doesn't work...Anyone know how to do this?Code:For X = 1 to 4 Call MySub(picBox1(X)) Next X


Reply With Quote
