Showing an Image/PictureBox while dragging it

Hello,

I have created a small app that drags images from one PictureBox to another. While this works well, I can only show the cursor (or a cursor style) while the image is being dragged. Ideally, I would like to show the image being dragged while the mouse button is down (similar to a card in Solitaire).

I have been experimenting with getting the current coordinates of the mouse (using e.x & e.y), and drawing an image using DrawRectangle, but I have not had any sucess. In theory, I thought I might get the cursor's position, and draw a PictureBox at this point, maybe during the GiveFeedback sub.

I would greatly appreciate any suggestions anyone might have, including any sample code.

Thank you in advance!

[761 byte] By [Loki70] at [2007-12-24]
# 1
Check this thread. It's for a panel but should work just as well for a picture box.
nobugz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2

That worked great. Thank you very much!

If you aren't getting paid for this, you should be.

Loki70 at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...