Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Drag Drop - Move Data Between Apps

Reply
 
Old 07-07-2009   #1 (permalink)
Mike


 
 

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
Old 07-08-2009   #2 (permalink)
G Himangi


 
 

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
Old 07-08-2009   #3 (permalink)
RayLopez99


 
 

Re: Drag Drop - Move Data Between Apps

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

> 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
Old 07-08-2009   #4 (permalink)
Mike


 
 

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:
Quote:

> 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
Reply

Thread Tools


Similar Threads
Thread Forum
drag and drop .NET General
Unable to copy, paste, move, drag and drop or delete General Discussion
drag and drop Vista General
No Drag and Drop? Vista mail
Access denied trying to "md"? Drag & Drop is now drag, drop, OK, OK ???? Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46