I have a program created so far that will display the contents of a users default directory on our SFTP site in a listview box. What I need to do though is to be able to frag the file from the listview box to wherever the user wants to drag it to such as their desktop or documents folder. I am using the code below using a mouse double click for testing to download the file using a folderbrowserdialog.
If lstvSFTPFiles.SelectedItems.Count > 0 Then
Dim strFilesPath() As String
ReDim strFilesPath(lstvSFTPFiles.SelectedItems.Count - 1)
For i As Integer = 0 To lstvSFTPFiles.SelectedItems.Count - 1
strFilesPath(i) = lstvSFTPFiles.SelectedItems(i).Text
Dim dt As DataObject = New DataObject(DataFormats.FileDrop,
I need to drag and drop outside the program. Is there a way to get the path where a user would drag a file too that I could send back to the program to complete the download? et me know if there is other code you would need to see.