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

Drag and drop into another application - don't think its possible....


Apologies for the ambiguous title, you will be expecting me to be asking how
to perform drag and drop from my application into another application.
Well, kind-of. I've got drag and drop sorted, apart from one thing. I'm
dragging and dropping items from my treeview and listview which represent
database "Images" (blobs). Now, I don't store the blob in the tree, I fetch
it when I need it. This is a problem for drag and drop, because, for
example, I want the user to be able to drag and drop some nodes into
explorer and for my application then to extract the data blobs from the
database and save them as files. Is this possible?
Nov 20 '05 #1
1 1912
Robin,
I have not tried it, I would save the nodes as temp files before I started
the Drag Drop operation (you can use System.Environment.GetFolderPath to get
the location of the Temp folder).

Then I would add the nodes to your DataObject as DataFormats.FileDrop. When
you add FileDrop to the DataObject you need to add an array of Strings that
represent the file names, hence storing the nodes as temp files first.

I would then expect if you dropped the nodes on WIndows Explorer it would
see the FileDrop format & deal with the underlying temp files...

Hope this helps
Jay

"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:bm******************@news.demon.co.uk...

Apologies for the ambiguous title, you will be expecting me to be asking how to perform drag and drop from my application into another application.
Well, kind-of. I've got drag and drop sorted, apart from one thing. I'm
dragging and dropping items from my treeview and listview which represent
database "Images" (blobs). Now, I don't store the blob in the tree, I fetch it when I need it. This is a problem for drag and drop, because, for
example, I want the user to be able to drag and drop some nodes into
explorer and for my application then to extract the data blobs from the
database and save them as files. Is this possible?

Nov 20 '05 #2

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

Similar topics

5
by: simon_s_li | last post by:
Hi, I am having problems finding out how to drag and drop text from one cell to another in a table in a JSP page. Can someone tell me how I can drag and drop text from one cell to another???...
5
by: Clyde | last post by:
I am trying to implement the user feedback provided by Windows Explorer when draggng a filename from one place to another. I have the drag and drop action worked out but have had no luck in...
4
by: Dave | last post by:
I need to add the ability to drag from a Windows Form and drop into a non dotNet application. For example, having a generated image in my app that I wish to drag out into explorer as a friendly way...
2
by: Grey | last post by:
I need to design a workflow application with C#. I want to design an UI with some workflow components which they can be drag & drop anywhere in order to design the workflow for the application...
6
by: Wei Junping | last post by:
Hi, all. I want my program act as an drag source and do drag and drop asynchronously. So, I created a class CDataObject which implements interfaces IDataObject and IAsyncOperation. To begin drag...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
3
by: James Radke | last post by:
Hello, I was curious, is it possible to create drag and drop interface from listbox to listbox on a webform application (i.e. vb.net)? Basically the application would need to load multiple...
4
by: kemal asad | last post by:
how can i create a vb application where i can drag and drop ( with a move caracteristic) email from outlook, into my application( email viewer). thanks, any help is welcome, samples a great way of...
0
by: RHSFSS | last post by:
Hi, I have a Drag and Drop registration problem (See http://www.thescripts.com/forum/thread434707.html for similar problem post), can anyone out thereadvise on the best solution? I have a .NET 2.0 ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.