I found a solution! New code is indicated by 'new

vb Code:
  1. Private CountArray As Integer      'Count the Created Object Array
  2. Private AllowDrag As Boolean       'Disallow Arrayed object to create other objects
  3. 'new
  4. Private bLeftMouseClick As Boolean
  5.  
  6.  
  7. Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)
  8. If AllowDrag = False Then Exit Sub
  9. CountArray = CountArray + 1
  10. Load Picture1(CountArray)
  11. Picture1(CountArray).Visible = True
  12. Picture1(CountArray).Print CountArray
  13.  
  14. Picture1(CountArray).Move (X - Source.Width / 2), (Y - Source.Height / 2)
  15. End Sub
  16.  
  17. Private Sub Form_Load()
  18. Picture1(0).AutoRedraw = True
  19. End Sub
  20.  
  21. Private Sub Picture1_DragOver(Index As Integer, Source As Control, X As Single, Y As Single, State As Integer)
  22. If Not Index = 0 Then
  23. AllowDrag = False
  24. Else
  25. AllowDrag = True
  26. End If
  27. 'new
  28. bLeftMouseClick = True
  29. End Sub
  30.  
  31. Private Sub Picture1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
  32. 'new
  33. If bLeftMouseClick Then
  34.  
  35. If KeyCode = 46 Then
  36.    MsgBox (KeyCode)
  37.    Unload Picture1(Index)
  38.  End If
  39.  
  40.  'new
  41.  End If
  42.  bLeftMouseClick = False
  43.  
  44. End Sub