Posted on 2006-06-01
Last Modified: 2010-04-24
How do I get Drag-n-Drop feature to work in C++.NET (and the whole .NET family for that matter)? I have allowed DragDrop in Properties and have registered a handler but when I try to drop a file or shortcut on the form, it shows me the not-allowed cursor. the one with circle and a diagonal line in it. I can capture the DragEnter Event but not DragDrop.
Question by:jhshukla
    LVL 15

    Expert Comment

    Look at this drag/drop beginner's tutorial. Same concepts apply to VC++.NET also.
    LVL 9

    Author Comment

    plz hold on for a few more days.
    LVL 9

    Author Comment

    lakshman, the link that you sent describes how to drag and drop from one control to another in the same form. I want to know how to drag an object from desktop or a folder, and drop it on the form. and after that, how to determine what kind of object was dropped - folder (normal or zipped) or what kind of file - and get path to it.
    LVL 15

    Accepted Solution

    Look at this sample for dragging from windows explorer to windows form

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…
    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…

    737 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

    22 Experts available now in Live!

    Get 1:1 Help Now