Hi all, working with a bunch of image control in an array. How would I go about removing one of the image control (array item) and replace it with the one next to it, and then reduce the array size to "array size - 1"?

In my case, user creates bunch of thumnails and later by right clicking on one of them, the thumbnail would automatically be deleted from the array and rest of the existing thumbnails on the right of it would be relocated to fill up the gap.

VB Code:
  1. Option Explicit
  2. Public thm As Integer
  3.  
  4. Private Sub Form_Load()
  5.    thm = thm + 1
  6. End Sub
  7.  
  8. 'To add each thumbnails (works fine)
  9. Private Sub MakeThmnails_Click()
  10. Static lCounter As Long
  11.           Load Image2(thm)  ' Create new button.
  12.           Image2(thm).Top = 0  
  13.           Image2(thm).Left = Image2(thm - 1).Left + 50 + Image2(thm - 1).Width
  14.           'Set new control to the right of previous
  15.           Image2(thm).Visible = True
  16.           Image2(thm).Stretch = True
  17.           Image2(thm).BorderStyle = 1
  18.           Image2(thm).ToolTipText = Combo1.Text
  19.           Picture1.Width = Picture1.Width + 1092
  20.           Image2(thm).Picture = LoadPicture(File2.Path & "\" & File2.List(lCounter))
  21.        thm = thm + 1
  22. End Sub

With code below I can remove all the thumnails to the right of the one user right clicks on but that's about as far as I've succeeded.
Thanks in advance.
VB Code:
  1. 'Remove code (needs to be modified)
  2. Private Sub Image2_MouseDown(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)
  3. If Button = 2 Then
  4.   For thm = Index To thm - 1
  5.        Unload Image2(thm)
  6.        Next
  7.        thm = Index
  8.   End If
  9. End Sub