473,597 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(Sy stem.Windows.Fo rms.DataFormats .FileDrop)),
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 1725
Is it not possible?

Greetings,
Daniel

"Daniel" <an*******@disc ussions.microso ft.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(Sy stem.Windows.Fo rms.DataFormats .FileDrop)),
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.DataObjec t, and fill it using the SetData method
(parameters DataFormats.Fil eDrop, string-array containing files).

Regards,
Daniel

"Daniel" <an****@microso ft.com> schrieb im Newsbeitrag
news:uk******** ******@TK2MSFTN GP12.phx.gbl...
Is it not possible?

Greetings,
Daniel

"Daniel" <an*******@disc ussions.microso ft.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(Sy stem.Windows.Fo rms.DataFormats .FileDrop)),
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
20832
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 and I have access to .net and the like, but I would really like to keep it simple.
4
3048
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 to save it. I have tried creating the object that I place into the DoDragDrop() by inheriting the COM interfaces IDropSource and IDataObject with no luck. If anyone can help I am very much open to suggestions. Thanks in advance!
0
2860
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. But when i put my Apps .exe file on my WebServers WWWROOT directory and call it from the internet explorer. the application starts with the following error message.
1
1925
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, 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...
0
1353
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 data objects in my application and to drag/drop them onto explorer for explorer to create files of them. Is this possible, or will I just have to stick with an explicit "Export" method in my program?
1
1670
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 this file will be encrypted and then you should be able to drag&drop the file from the application to the explorer. How can i code the last step ?!? I have tried it with DoDragDrop but without success :-( TIA
0
962
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 starts a drag files 2. The files are dropped on another application (ex: Windows explorer) 3. How to notify the Visual Basic application that the files where already moved/copied/linked by the target application?
1
3271
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 information when a web link is dropped onto my application from Internet Explorer. When you drag the link in the Address bar of Internet Explorer to your desktop, the desktop shortcut that gets created has the Title of the web page as it’s name,...
3
3977
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 can see that the order I get in my drop event is not always the same as displayed in the explorer window. Further more the order changes depending on how many files/dirs are
0
7884
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8267
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8024
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5844
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3880
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3921
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1229
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.