This is an example of how to determine which controls in an array are loaded. This particular snippet works for a picturebox array called picture1.
VB Code:
Dim pic As PictureBox Dim strLoaded As String Private Sub Form_Load() For Each pic In Picture1 a = pic.Index strLoaded = strLoaded & a & "," Next strLoaded = Left(strLoaded, Len(strLoaded) - 1) 'strLoaded returns the indexes of each loaded control in the array delimited with commas. MsgBox strLoaded End Sub