469,883 Members | 1,140 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,883 developers. It's quick & easy.

DRAG DROP of an image to a win EXPLORER window (or desktop)

Hi,

I have a PictureBox on a form. I wish to drag the image exposed by the
PictureBox through the property "image" to a window of Windows
Explorer. The new file will have a name assigned by the programmer, for
instance "MyDraggedImage.png".

I know that to write the image to disk I could:

Dim TargetDirectory As String = "HowDoIGetIt?"
MyPictureBox.Image.Save(TargetDirectory & "MyDraggedImage.png")

but the problem is that I have no idea how to do the drag drop and get
the destination directory. I would suspect that this is not very
immediate and perhaps requises some pinvoke.

Is there anyone that can tell me how to do this (any .net language will
be fine)

Thank you very much in advance

-Pam

Mar 6 '06 #1
0 994

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by SamSpade | last post: by
5 posts views Thread by Brian Henry | last post: by
reply views Thread by prjeavons | last post: by
reply views Thread by jr_web001 | last post: by
1 post views Thread by ashwinigopi | last post: by
2 posts views Thread by bob | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.