473,226 Members | 1,527 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,226 software developers and data experts.

DragDrop files

Hi

We have a directory receiving PDF files from various scanners. I need a
simple to browse these files, view them, and based on the content move them
to different applications using drag/drop.

I've written a very simple Windows app with a list view on the left side and
a WebBrowser control on the right side. In the list view I show all PDF
files from the directory. When the user click on a file in the list view I
show the PDF file in the WebBrowser control. (The WebBrowser control will
use which ever pdf reader installed to show the file)

I want to drag the "file" from my list view to another application. (e.g
Explorer). When the file has been moved it should be deleted from the
directory and removed from my list view, and the next file from the list
should be shown in the WebBrowser control. Sounds easy - but:

If I use DragDropEffects.Move in the listView.DoDragDrop the receiving
application (e.g Explorer) will fail because the file is in use by the
WebBrowser control. (Where the pdf file is shown). I've tried to navigate to
the next file but it seems impossible to syncronize this to happen before
the file move when the file is dropped.

If I use DragDropEffects.Copy in the listView.DoDragDrop I'll have to
manually delete the file and remove it from my listview. I've tried deleting
the file in the listviews QueryContinueDrag event which is fired when the
file is dropped in another application, this is fired as soon as the file is
dropped so I got the file deleted before the receiving app got it copied.

Seems like it is very difficult to syncronize when a file is droppep to a
"foreign" application.

Any suggestion would be appreciated thanks.

Peter
Jun 27 '08 #1
0 1202

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

Similar topics

7
by: Kate | last post by:
Hi: I have a form with a picture box and some command buttons to make certain shapes appear in the picture box. The shapes are drawn on blank UserControls added like this: 'at top of form...
4
by: Owe Armandt | last post by:
When I play with DragDrop of files to a form I get two DragEnter events before the DragDrop event, why is this?? Owe
0
by: Flack | last post by:
Hello, Is it possible to find out how many methods are listening to a certain event? For example, if a number of methods subscribed to a controls DragDrop event using +=, can I find out how many...
0
by: Mark C. | last post by:
I'm trying to program drag drop in a rich text box that is similiar to what you would see in wordpad, Word, etc. specifically, I'd like to move/copy text using drag drop. I can't seem to get the...
3
by: Roger Uribe | last post by:
It was easy in VB6... how can i retrieve the name(s) of files dropped onto a vb.net control from windows explorer it'll be easy in vb.net too ... when i know the answer!! thanks roger
0
by: Gene Hubert | last post by:
Well, it seems fundamental to me anyway. Hopefully it is simple enough. The question is for when the source for the dragdrop is a different application that the target for the dragdrop. How...
3
by: Gary Dunne | last post by:
I'm writing an app that requires drag and drop operation between a ListView and a TreeView control. (The source is the ListView). During the drag drop operation I want to be able to detect the...
3
by: Dpage | last post by:
Hello, I'm trying to allow users to drag a file (in this case a crystal report .rpt file) onto my application's icon and have that drop event open my application and open the report in the...
1
by: Jeff Williams | last post by:
With a DragDrop event is there a way to determine which control I have droped files onto. ie I have 5 picture boxes on the form. I want to use one dragdrop event and when the drop occurs get...
10
by: Ratnesh Raval | last post by:
Hi All, My question is on DragDrop, How would I implement a Drag from listview and Drop on Desktop or any other folder on the computer. The listview contains list of files, so basically...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.