Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

Drop ListView Item into explorer folder

Hi, I have made a simple ftp client, and i would to add to my application Drag & drop capabilities. I have made with success a function for drop files from explorer to a listview, so i can upload a file or a folder in this way. But, for download functions, I must drag a file or a folder from a listview(in the listview i have the file list on ftp server) to the windows explorer (on the desktop for example), outside of my application window.

I can't find a valid and simple code to do this

Can anyone help me ? :-(
0
enumaelis
Asked:
enumaelis
  • 2
1 Solution
 
Slick812Commented:
hello  enumaelis, , as far as I can tell, there may not be a "Simple" way to code this, to do Shell Drag and Drop, I think you will need to do the shell Interfaces for Drag and Drop, not an easy thing to do correctly. . . I have used a Drag and drop component to do this sort of thing, you can find some good Drag and drop components at Torry web page -

http://www.torry.net/pages.php?id=233

I have used the   "Drag and Drop Component Suite v.3.7"   with good results, but there are several others there also
0
 
enumaelisAuthor Commented:
Hi, thanks for your answer :-)

I have already seen the "Drag and Drop Component Suite" (version 4), but I had some difficulties on use it, because the component that provides the drop function to Explorer wants as parameter an exsisting file on the disk, and so it can move this file to the destination. But if I drag an item from a listview (the remote file list) obviously I receive an error, because the component does'nt find the source file. It seems that there isn't a method to obtain from component, after the drop, the destination folder where I released the mouse button (so i could execute download in that folder).

Any idea ?
0
 
Slick812Commented:
I can not understand what you are saying about the thing you want to do? ?  ?
If you want to use the "Shell" drag and drop for a File, then  I think (from what I know about it) that you will NEED an existing source file, that is accessible from a existing Disk,  when you do a Shell drag and drop, it tells the Recieving window that something has been dropped on that window, so you must initialize your Drag with the data that is being dragged, If you are dragging a File, then you set the Drag data to a File path and name, I know that the interface tells the drag sender some information about the drop destination, but I am not sure if that would help you,
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now