Hello my fellow DanniWebbers, it is me againg. I have yet another question for you guys and gals.
I have a parent panel with child panels that contain images. I am looping through the panels to save the images in the order the panels appear in the parent panel.
I am using:
for p as Panel in ImagePanel.Controls
scannedImages(j) = p.BackGroundImage
j += 1
next
I can also re-arrange the panels via mouse. The problem is that when they are rearranged, they do not retain their order when saved.. They simply are saved in the order they were added to the parent panel.
So my question is, does the for loop use the index set when adding the panel? If so, how can I manipulate the index in runtime while arranging the panels via mouse.