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,
Who is Participating?
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 ....)
"_DragDrop" event is fired in VB6
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.