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

Create file using drag and drop

I'm trying to create a file using drag and drop.
I want to be able to select a listview item drag it to the shell and create a file.
Each icon in the listview represents a blob in a database.
When I drop onto the shell I want a file created with a specified name containing the data from the database.

I've looked at the FileDrop format but it look to have only the filename and not the data.

TIA
Jan 20 '06 #1
1 4659
Hi Darren,
Welcome to MSDN Newsgroup!

Based on your requirement, I suggest you could use OLE Drag and Drop com
technique to achieve the goal.
The Source of the drag-drop is represented by the IDropSource interface.
The IDropSource contains methods for generating visual feedback, and for
canceling or completing the drag-drop operation. The Target of the
drag-drop is represented by the IDropTarget interface. The Data being
transferred is represented by the IDataObject interface.
So you could take out data form database and use IDropSource interface to
transfer it. And then create a new file with the data from IDropSource. You
could refer to the following article to get more information about OLE
Drag/Drop:
Part 1 - Introduction OLE Drag and Drop Introducing the OLE and COM
technologies.
http://www.catch22.net/tuts/dragdrop.asp

Part 2 - OLE Data Transfers All about OLE data types, storage mediums and
data formats.
http://www.catch22.net/tuts/dragdrop2.asp

Part 3 - Implementing IDataObject Standalone implementation of the
IDataObject interface.
http://www.catch22.net/tuts/dragdrop3.asp

Part 4 - Enumerating FORMATETC Standalone implementation of the
IEnumFormatEtc interface.
http://www.catch22.net/tuts/dragdrop4.asp

Part 5 - Drop Source Implementing the IDropSource interface.
http://www.catch22.net/tuts/dragdrop5.asp

Part 6 - Drop Target Implementing the IDropTarget interface.
http://www.catch22.net/tuts/dragdrop6.asp

I hope the above information is helpful for you. If you have any questions,
please feel free to let me know. Thanks and have a nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
Jan 23 '06 #2

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

Similar topics

2
by: rob | last post by:
I'm trying to create a UI which allows to move objects. I would like to give reall drag and drop feature.. I do not want to give fake drag and drop. When the user selects it should create a...
5
by: Brian Henry | last post by:
I haven't worked much with drag/drop but I am trying to make a form that accepts files to drug onto it from explorer and droped and have the form know the full path and file name of the files...
2
by: Skwerl | last post by:
We just installed a new SAN from Sun and need to migrate several terrabytes over to it from our Windows servers. We've found that drag-and-drop copying files using Explorer is going to be very...
2
by: Vincent | last post by:
I have been given the task of creating a scheduler for a POS program my company sells. They are currently using the Microsoft FlexGrid as the crux of the design. However, I want to be able to...
0
by: raghunadhs | last post by:
Hi all! i am developing an application in v.b 6.0. it consists of some user controls (developed by using Activex controls...)... I am able to drag and drop the user contols on the screen and these...
17
by: radhikams | last post by:
Hi I want to create a drag drop tool box using javascript... Can anyone please guide me in this regard Thanks
3
by: Sirisha | last post by:
Hi ... Is it possible to drag a file from Client Desktop into the Browser Form File Element(input type='file') instead of File Browse? I know that, File drag is possible in the Mozilla Firefox...
16
by: John | last post by:
I am looking for VBA code that will work with Access 2003 to enable dragging and dropping a file/folder name from Windows XP Explorer into an Access form's text box. This is a common functionality...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
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...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
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...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...

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.