drag and drop from a listview

Posted on 2009-04-22
Last Modified: 2012-05-06
I have a list view that can either have an item dragged to a treeview or it could be dragged to windows explorer and the dragged item saved as a file.

could someone give me an example how to do this in


Question by:alchemy9
    LVL 39

    Accepted Solution

    In a recent post I explained a couple of concepts and came up with a full working cut and paste example. Even though it is in C# and the example adds some features (like a response-delay) it shows the concepts well. See this post (will go to the right comment).
    LVL 83

    Expert Comment

    To be able to save a file from a dragged item from list view(i think it would be file name) and dropped on the explorer window, you would need to write a Shell Extension. This is a very advanced topic and is usually tackled in C++.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    This video discusses moving either the default database or any database to a new volume.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now