• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

What is drag and drop doing?

What is drag and drop doing?

I have a folder with shortcuts to all of my printers in it. It also contains .doc, .bmp, .txt and other printable documents. If I want to print one of the documents I can just drag and drop it onto one of the printer shortcuts. My question is what command is sent to the printer shortcut? I want to be able to do the same thing, but using VB code.

Thanks for your help,
2 Solutions
"_DragDrop" event is fired in VB6
mah8473: ... if you have set the OLEDragMode property from "0" (none) to "1" (manual)

Example for accessing the 1. Markt File when dropping. Unfortunatly this doen´t work for droping a printer shortcut. Don´t know exactly waht´s your goal. Dropping .bmp should work.

Private Sub Form_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)

Debug.Print Data.Files.Item(1)

End Sub

This will be the filename

(Too make sure the User drop one or more files: if Data.GetFormat(15) then ....)

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now