PC Review


Reply
Thread Tools Rate Thread

Drag ListViewItem onto desktop/win Explorer (C#)

 
 
Xlay
Guest
Posts: n/a
 
      18th Jul 2006
I need to permit the users to drag an item from a ListView control of
my form onto the desktop/win explorer. However, I also need to do some
pre-processing and manually place the files into the location.
Basically, it seems all I need to do is determine the path where the
user has dragged the item onto. Can this be done easily?
With all the drag and drop samples I've found the task is opposite, so
I'm wondering if somebody could please help me out with a link or code
sample.

Thanks in advance

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RhbmltaXIgU3RveWFub3Y=?=
Guest
Posts: n/a
 
      18th Jul 2006
Hello Xlay,

Wang Ting has written sample code which enables dragging ListView items and
dropping in Explorer to generate files. The blog post can be found at
http://blog.joycode.com/felix/articles/38825.aspx .

Hope this helps.
--
Best regards,

Stanimir Stoyanov
(E-Mail Removed)


"Xlay" wrote:

> I need to permit the users to drag an item from a ListView control of
> my form onto the desktop/win explorer. However, I also need to do some
> pre-processing and manually place the files into the location.
> Basically, it seems all I need to do is determine the path where the
> user has dragged the item onto. Can this be done easily?
> With all the drag and drop samples I've found the task is opposite, so
> I'm wondering if somebody could please help me out with a link or code
> sample.
>
> Thanks in advance
>
>

 
Reply With Quote
 
Xlay
Guest
Posts: n/a
 
      18th Jul 2006
Thanks Stanimir, but the sample does not really solve my request to
determine the drop path and have my form code do the rest... Can this
be done easily or must one always retreat to using temporary files?

Stanimir Stoyanov wrote:
> Hello Xlay,
>
> Wang Ting has written sample code which enables dragging ListView items and
> dropping in Explorer to generate files. The blog post can be found at
> http://blog.joycode.com/felix/articles/38825.aspx .
>
> Hope this helps.
> --
> Best regards,
>
> Stanimir Stoyanov
> (E-Mail Removed)
>
>
> "Xlay" wrote:
>
> > I need to permit the users to drag an item from a ListView control of
> > my form onto the desktop/win explorer. However, I also need to do some
> > pre-processing and manually place the files into the location.
> > Basically, it seems all I need to do is determine the path where the
> > user has dragged the item onto. Can this be done easily?
> > With all the drag and drop samples I've found the task is opposite, so
> > I'm wondering if somebody could please help me out with a link or code
> > sample.
> >
> > Thanks in advance
> >
> >


 
Reply With Quote
 
=?Utf-8?B?U3RhbmltaXIgU3RveWFub3Y=?=
Guest
Posts: n/a
 
      18th Jul 2006
"Xlay" wrote:

> Thanks Stanimir, but the sample does not really solve my request to
> determine the drop path and have my form code do the rest... Can this
> be done easily or must one always retreat to using temporary files?


Hello Xlay,

This is the only procedure that I know of, and other applications seem to
incorporate this. For instance, dragging files from WinRAR and dropping them
to Explorer extracts them to a temporary directory and then they are moved
using SHFileOperation.

I hope this helps.
--
Best regards,

Stanimir Stoyanov
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Notification after drag/drop operation to Windows Explorer or Desktop jensro Microsoft Dot NET 0 30th Mar 2007 04:03 PM
DRAG DROP of an image to a win EXPLORER window (or desktop) pamelafluente@libero.it Microsoft C# .NET 0 6th Mar 2006 08:30 PM
DRAG DROP of an image to a win EXPLORER window (or desktop) pamelafluente@libero.it Microsoft VB .NET 0 6th Mar 2006 08:30 PM
ListView.Items.Add(ListViewItem) returns ListViewItem reference instead of the Index as integer? Eric Newton Microsoft Dot NET Framework Forms 3 8th Jan 2004 09:56 AM
Explorer Crashes Everytime I Drag/Move A File On the Desktop Karl Burrows Windows XP General 0 17th Sep 2003 02:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:04 PM.