473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Drag ListViewItem onto desktop/win Explorer (C#)

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

Jul 18 '06 #1
3 3800
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
ad***@nospam.stoyanoff.info
"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

Jul 18 '06 #2
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
ad***@nospam.stoyanoff.info
"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
Jul 18 '06 #3
"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
ad***@nospam.stoyanoff.info
Jul 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: EdB | last post by:
I am trying to mimic a behviour and obviously having some trouble with it. Open up two Windows Explorer windows. Select a file in (1) and drag it to a folder in (2). Prior to dropping it, the...
0
by: Lauren Quantrell | last post by:
I'm trying to drop a file from Windows Explorer (or desktop, etc.) onto a field in Access2K and capture the full file path. I found an posting below that says this is possible but I cannot...
0
by: Yavuz Bogazci | last post by:
Hi, i have build a form with a listbox and the function that he user can drag and drop files from the windows explorer in this listbox. this works for me when i start it on my localmachine. ...
2
by: Pete Mitchell | last post by:
I have an application that parses a file and creates a new one based on the contents of the original file. What do I need to do so that a user could drag the source file from Windows Explorer and...
2
by: Dolorous Edd | last post by:
Hi, for a program I'm working on I need to be able to drag multiple files between Windows Explorer and a ListBox, in both directions. Implementing the "drag in" was pretty easy, but I can't find...
1
by: Staal | last post by:
My C# application supports drag and drop of files, folders, shortcuts and links from other applications into mine. This all works pretty nicely, except that I am trying to get a little more...
0
by: jensro | last post by:
Is it possible to get a notification during a drag and drop operation to the Windows Explorer / Desktop as soon as the user drops an item there? I need this in order to perform an export operation...
0
by: jawilson | last post by:
Hello, I am trying to use drag-n-drop for a listview control in my program. I created a new listview control class (just call it MyListView) that inherits from ListView, and creates a few new...
2
by: jmDesktop | last post by:
I have two listview controls. I have three items of text. I can drag and drop the listview items between each other, back and forth. But the images from the imagelist do not copy over from...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.