Shell Style Drag and Drop in .NET – Part 3 (Bug Fix)


I updated the download link for the sources of Shell Style Drag and Drop in .NET – Part 3. There was a bug that several readers found, where some programs would try to get data that didn’t exist, and the DragObject implementation didn’t tell them about the status of the data properly. This manifested itself, for example, if you tried to add FileDrop data and drop it in the Windows Explorer.


There are some other potential bug fixes on the way, too.


Comments (4)

  1. Luke says:

    Great!  Thanks for the update, what are the other known issues and pending bug fixes?

  2. adamroot says:

    No major issues that I know of.

  3. Khalid says:

    Hi

    first, thanks for the articles, they helped me a lot.

    I use your code in an explorer like application. All drag & drop operations from windows explorer to my app works great (drop descriptions, drag images). But now my app should create the same drag images the explorer creates when dragging files (these blueish images with the file icon inside, or multiple icons). Do you know how to create those drag images from IShellItem/IShellFolder interface? Or maybe over another interface? Im just able to create those old style drag images over an IDataObject created by the shell (IShellFolder.GetUiObjectOf with IID_IDataObject), but these method doesn’t create the “new” drag images.

  4. adamroot says:

    Sorry, I haven’t tried to do that.