- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI have a VB.NET Application with a treeview. Within this treeview, I have nodes that contain a filename and an ID. When the user clicks on a node, it saves the node's ID to a local variable. This ID can be used to retrieve the BLOB from a database for the file's byte array. What I've done so far is setup a DragLeave Event on the Treeview so if the user clicks and drags a file, the moment the file is dragged outside the Treeview, it saves the file from the database down to a local temp directory and saves this entire filename (including the directory) to a variable called TempFullFileName. The following is then run:
Dim dto as DataObject = New DataObject(DataFormats.Fil
DoDragDrop(dto, DragDropEffects.Copy)
I have checked everything up until this point - if I break on the "Dim dto" line, I can see the file has been created in the temp directory and I can double click on it which opens it just fine. Also, when I drag outside the treeview (or the application itself), I am getting the Copy cursor as I should. If I release the mouse button over the explorer window (or the desktop), however, nothing copies. Am I missing something here? Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: CyprexxDevPosted on 2008-06-03 at 15:15:36ID: 21705080
I figured out the answer right after I posted this... The TempFullFileName variable must be an array. Since I only have one at a time, I was using a variable of the type "string" instead of "String()". Once I changed it over to the string array, it worked fine.