Windows Vista Forums

Drag Drop - Move Data Between Apps
  1. #1


    Mike Guest

    Drag Drop - Move Data Between Apps

    I want to drag drop data from one app to another. If the other app
    chooses to ‘move’ the data, I need to respond by deleting it from the
    source app.

    I was reading about the GiveFeedBack event.
    See: http://msdn.microsoft.com/en-us/libr...efeedback.aspx

    It states “If the value of DragAction is Drop, the drop effect value
    is returned to the source, so the source application can perform the
    appropriate operation on the source data; for example, cut the data if
    the operation was a move.”

    OK, that’s exactly what I want to do but what event is fired to tell
    me the drop effect? Unfortunately, the documentation doesn’t say. I
    don’t see any event getting fired including the DragDrop event.

    Any ideas?

    Thanks,
    Mike



      My System SpecsSystem Spec

  2. #2


    G Himangi Guest

    Re: Drag Drop - Move Data Between Apps

    The Control.DoDragDrop method return value will indicate the action that the
    atregt took.

    ---------
    - G Himangi, LogicNP Software http://www.ssware.com
    Shell MegaPack: Drop-In GUI Controls For Windows Explorer Like File And
    Folder Browser Functionality
    CryptoLicensing: Add licensing, copy-protection and activation to your
    software
    EZNamespaceExtensions: Fast and painless development of namespace extensions
    EZShellExtensions: Rapid development of all shell extensions,explorer bars
    and BHOs
    ---------


    "Mike" <MLM450@xxxxxx> wrote in message
    news:8e44d514-e8c8-46e5-912a-1a08f0415d48@xxxxxx
    I want to drag drop data from one app to another. If the other app
    chooses to ‘move’ the data, I need to respond by deleting it from the
    source app.

    I was reading about the GiveFeedBack event.
    See:
    http://msdn.microsoft.com/en-us/libr...efeedback.aspx

    It states “If the value of DragAction is Drop, the drop effect value
    is returned to the source, so the source application can perform the
    appropriate operation on the source data; for example, cut the data if
    the operation was a move.”

    OK, that’s exactly what I want to do but what event is fired to tell
    me the drop effect? Unfortunately, the documentation doesn’t say. I
    don’t see any event getting fired including the DragDrop event.

    Any ideas?

    Thanks,
    Mike



      My System SpecsSystem Spec

  3. #3


    RayLopez99 Guest

    Re: Drag Drop - Move Data Between Apps

    On Jul 7, 6:07*pm, Mike <MLM...@xxxxxx> wrote:

    > I want to drag drop data from one app to another. If the other app
    > chooses to ‘move’ the data, I need to respond by deleting it from the
    > source app.
    Good luck with that. I once looked into D&D, and while there's a lot
    of free code out there, there's always something going wrong when you
    try and implement it. And I notice many programs today have gotten
    away from using D&D, which was popular about 5 to 10 years ago. I
    would just stick a menu item and be done with it. To me, D&D is not
    that intuitive, as to what exactly it's supposed to do (when you drop
    another program onto it). It's a gimmick IMO.

    RL


      My System SpecsSystem Spec

  4. #4


    Mike Guest

    Re: Drag Drop - Move Data Between Apps

    Thanks G! That was it. I was misunderstanding the DoDragDrop. I
    thought it immediately returned and everything was done with events
    after that.

    On Jul 8, 2:27*am, "G Himangi" <nos...@xxxxxx> wrote:

    > The Control.DoDragDrop method return value will indicate the action that the
    > atregt took.
    >
    > ---------
    > - G Himangi, * LogicNP Software * * *http://www.ssware.com
    > Shell MegaPack: Drop-In GUI Controls For Windows Explorer Like File And
    > Folder Browser Functionality
    > CryptoLicensing: Add licensing, copy-protection and activation to your
    > software
    > EZNamespaceExtensions: Fast and painless development of namespace extensions
    > EZShellExtensions: Rapid development of all shell extensions,explorer bars
    > and BHOs
    > ---------
    >
    > "Mike" <MLM...@xxxxxx> wrote in message
    >
    > news:8e44d514-e8c8-46e5-912a-1a08f0415d48@xxxxxx
    > I want to drag drop data from one app to another. If the other app
    > chooses to ‘move’ the data, I need to respond by deleting it from the
    > source app.
    >
    > I was reading about the GiveFeedBack event.
    > See:http://msdn.microsoft.com/en-us/libr....forms.control.....
    >
    > It states “If the value of DragAction is Drop, the drop effect value
    > is returned to the source, so the source application can perform the
    > appropriate operation on the source data; for example, cut the data if
    > the operation was a move.”
    >
    > OK, that’s exactly what I want to do but what event is fired to tell
    > me the drop effect? Unfortunately, the documentation doesn’t say. I
    > don’t see any event getting fired including the DragDrop event.
    >
    > Any ideas?
    >
    > Thanks,
    > Mike

      My System SpecsSystem Spec

Drag Drop - Move Data Between Apps problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to copy, paste, move, drag and drop or delete nuwk3r General Discussion 29 27 Dec 2008
drag and drop Todd Hudson Vista General 0 13 Apr 2008
Drag and Drop bluvd48 Live Mail 5 10 Apr 2008
Drag and Drop Tom Beauchamp - Coach Vista mail 0 10 Mar 2008
Access denied trying to "md"? Drag & Drop is now drag, drop, OK, OK ???? Noozer Vista installation & setup 0 17 Oct 2006