if you want to know what changes i made:

  • set mainForm.allowdrop = true
  • handled mainForm_DragOver + mainForm_DragDrop
  • in the dragover event it only shows dragging allowed for files
  • in dragdrop, if dragged data is file(s), it creates a new picturebox for each file + sets the appropriate properties (size, location, tag, image, cursor), extracting the associated icon for image
  • + adds a handler for doubleclick
  • in the pb_doubleclick event it runs the file in it's default editor/viewer