Hi,
In VB I can drag and drop an item between two lists without any problems but even after extensive searching I haven't found a convincing method to show the user what is being dragged.
This could of course be me using less than optimal search terms but it still surprises me as it is something we see everywhere around us. I therefore expected to easily find results about this technique.
For example, when I drag a file in File Explorer I see a transparent icon depending on the file type. When I drag an e-mail item from Outlook's Inbox to another folder I see a transparent line with the e-mail's topic and other information.
I know how to change the mouse cursor to a bitmap having full information about the item being dragged. But this isn't really helpful as the mouse cursor itself and its display of DragDropEffects is gone.
In the above examples both the mouse cursor and a bitmap showing information about the item being dragged are shown.
The DoDragDrop method mentions an overload which suggests a bitmap could be included:
DoDragDrop(Object, DragDropEffects, Bitmap, Point, Boolean)
However, this overload is not available when I insert the method in my code and I haven't found any examples of how to use it. I can only access this one:
DoDragDrop(Object, DragDropEffects)
I could use a PictureBox, set it up with the desired information bitmap and move it around together with the mouse cursor but I suspect there are better practices.
So before I take that route, what is the usual way to achieve this? I'd appreciate any suggestions (and possibly examples) to point me in the right direction.
Willy