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

Drag files from application to explorer

Hello,

in my application, i need to drag files from the windows
explorer to the application, but also the other way round.
To drag files from the explorer works fine (using
Data.GetData(System.Windows.Forms.DataFormats.File Drop)),
but how must i set the Data-object to drag files from my
application to the explorer?

Thanks in advance for your help.

Regards,
Daniel

Nov 16 '05 #1
2 1709
Is it not possible?

Greetings,
Daniel

"Daniel" <an*******@discussions.microsoft.com> schrieb im Newsbeitrag
news:22****************************@phx.gbl...
Hello,

in my application, i need to drag files from the windows
explorer to the application, but also the other way round.
To drag files from the explorer works fine (using
Data.GetData(System.Windows.Forms.DataFormats.File Drop)),
but how must i set the Data-object to drag files from my
application to the explorer?

Thanks in advance for your help.

Regards,
Daniel

Nov 16 '05 #2
Ok, i've found the solution. If anybody is interested: You have to create a
System.Windows.Forms.DataObject, and fill it using the SetData method
(parameters DataFormats.FileDrop, string-array containing files).

Regards,
Daniel

"Daniel" <an****@microsoft.com> schrieb im Newsbeitrag
news:uk**************@TK2MSFTNGP12.phx.gbl...
Is it not possible?

Greetings,
Daniel

"Daniel" <an*******@discussions.microsoft.com> schrieb im Newsbeitrag
news:22****************************@phx.gbl...
Hello,

in my application, i need to drag files from the windows
explorer to the application, but also the other way round.
To drag files from the explorer works fine (using
Data.GetData(System.Windows.Forms.DataFormats.File Drop)),
but how must i set the Data-object to drag files from my
application to the explorer?

Thanks in advance for your help.

Regards,
Daniel


Nov 16 '05 #3

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

Similar topics

8
by: WindAndWaves | last post by:
Hi everyone, Has anyone got any experience with drop and drag in Access? I would like to make a calendar style form where my users can drop and drag appointments.... I am using Access 2003...
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...
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. ...
1
by: Robin Tucker | last post by:
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,...
0
by: Robin Tucker | last post by:
I've implemented an IDataObject interface around one of my classes in order to facilitate drag/drop from my application into explorer. What I want to do is allow the user to select a series of...
1
by: Marco Zender | last post by:
Hello, i'm in real trouble and don't know how to handle it! May someone can give me a hint? Following problem: In my application you can drag&drop a file from the explorer. In my application...
0
by: Arcer P | last post by:
Non Newbie question HOW TO: Drag a file and receive notification that the target application (ex: Windows explorer) completed the drop process (move/copy/link)? 1. A Visual Basic application...
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...
3
by: Hartmut Dippon | last post by:
Hi all, I hope somebody can help me with following problem: I have an application where I can drag&drop files/dirs from within explorer onto my form. If multiple files/dirs are selected I...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.