Implement file dragging to the desktop from a .net winforms application?
问题 I have a list of files with their names in a listbox and their contents stored in an SQL table and want the user of my app to be able to select one or more of the filenames in the listbox and drag them to the desktop, yielding the actual files on the desktop. I can't find any documentation on how to do this. Can anyone explain or point to an explanation? Added later: I've been able to make this work by handling the DragLeave event. In it I create a file in a temporary directory with the