Listview drag and drop folder?

Adagio

Well-known member
Joined
Dec 12, 2005
Messages
162
Programming Experience
Beginner
Is it possible to drag and drop a folder into listview? So far I've only found a way to drag and drop files, but not folders
 
Folder drop works same as file-drop, FileDrop may contain both files and folders. A dropped folder lists as the folder path, not the files it contains. You have to check each path dropped if it is a folder (shared method IO.Directory.Exists) - else it is a file.
 
But I haven't found a way to activate the listview to allow a folder drop. When I grab a folder and drag it over the listview the cursor becomes the "not allowed" cursor
 
EDIT: Ah, now I now what you mean, now I believe I know what to do, thanks :)

EDIT 2: Yeah, works great, thanks for the help
 
Last edited:
Back
Top