I've looked high and low for a solution to being able to Drag and Drop from a Picturebox to Explorer to copying the file in the folder location. Take a look at my code below. I need another set of eyes on it to see what I'm getting wrong here. Thanks.
Basically, I'm saving the image to a temporary location upon the mouse down event, putting it into the data object, they trying to drop the object upon drop. Everything seems to work except I get no file. :(
Private Sub Picturebox1_QueryContinueDrag(ByVal sender As Object, ByVal e As System.Windows.Forms.QueryContinueDragEventArgs) Handles PictureBox1.QueryContinueDrag
If e.EscapePressed Then
e.Action = DragAction.Cancel
If e.KeyState = 0 Then
e.Action = DragAction.Drop
e.Action = DragAction.Continue
Private Sub Picturebox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
m_MouseIsDown = True
Private Sub Picturebox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
If m_MouseIsDown Then
Dim dataObj As DataObject
dataObj = New DataObject
strTempFile = Path.GetTempPath & "drawing-" & trItem.IRECID & "-" & TimeOfDay.Hour & TimeOfDay.Minute & TimeOfDay.Second & ".jpg"
m_MouseIsDown = False