473,545 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drag and Drop from Listview -> Explorer (stored file).

Hi there,

I'm writing an application which works similar to winzip which
basically reads from an internal file structure and writes to a file. I
need to be able to drag out of my list view and drop a file onto
Explorer. I got it to work by copying the original source file in
OnItemDrag() as follows:

DataObject sFile = new DataObject();

string[] aFiles = new string[1];

aFiles[0] = strFile;

sFile.SetData( DataFormats.Fil eDrop, aFiles );

DoDragDrop( sFile, DragDropEffects .Copy );

This copies from the original source file but I can't find any
information anywhere on how to set it up so that it will copy from a
memory or file stream source? Basically, I need it to ask my
application for the data so I can then decompress and stream it out.
Can anyone point me in the right direction?

Thanks,
Darryl

Mar 1 '06 #1
0 1595

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

Similar topics

0
1450
by: Marco Auday | last post by:
I need to associate items in two listviews. I have got the drag-and-drop operation to perform as I wanted. However, I would like the items in the target listview to be highlighted when the mouse hovers over them during the drag-and-drop operation, so that I know for sure which item I selected on the target listview. I have tried a number of...
1
6283
by: VR | last post by:
I am trying to use a custom cursor during drag-drop operation between 2 ListViews. So, I have a code that at the time GiveFeedback() is called creates a new cursor based on the icon and text of the dragged item: private void listView2_GiveFeedback ( object sender, System.Windows.Forms.GiveFeedbackEventArgs e )
1
312
by: Jim McLeod | last post by:
Dear Group How am I going wrong with this drag and drop procedure.. private void ResourceList_ItemDrag(object sender, System.Windows.Forms.ItemDragEventArgs e System.Windows.Forms.ListView ListView = (System.Windows.Forms.ListView)sender System.Collections.ArrayList ListItemArrayList = new ArrayList() ...
0
264
by: Jean Christophe Avard | last post by:
Hi! I'm designing a ClipArt manager, I have a listview where I display the image contained in the differnt collections. I need to be able to drag image from the listview onto any other external application. and vice versa... I know how to drag drop between 2 listview, but I dont know how when it comes to external app... anyone&? Thank you,...
0
1023
by: Jean Christophe Avard | last post by:
Hi! I'm designing a ClipArt manager, I have a listview where I display the image contained in the differnt collections. I need to be able to drag image from the listview onto any other external application. and vice versa... I know how to drag drop between 2 listview, but I dont know how when it comes to external app... anyone&? Thank you,...
3
10578
by: VB Programmer | last post by:
In VB.NET 2005 (winform) any sample code to drag & drop items between 2 listboxes? Thanks!
2
9696
by: TarheelsFan | last post by:
I am having problems with drag and drop into a listview. I am able to drag and drop items from within the listview, as well as drag items from the listview and drop into a picturebox. However, I am not able to drag the text or image from the picturebox to the listview. In the listview_dragenter function, I have e.Effects =...
2
2528
by: ngajjar | last post by:
An application I am working with has two listview controls. Items are added runtime from the database when form load. It requires a mechanism which allow user to drag item from a listview and drop in another listview. In code behind it should update the database.
2
3741
by: jmDesktop | last post by:
I have two listview controls. I have three items of text. I can drag and drop the listview items between each other, back and forth. But the images from the imagelist do not copy over from listview1 to listview2, only the text does. Both listviews have their smallimagelist as the single imagelist I have. Here is my code and thank you for...
2
3463
by: Tom Bean | last post by:
I wrote an C# application that uses drag and drop to copy the contents of one ListViewItem to another. I call DoDragDrop() in the ItemDrag event handler, however, the ItemDrag event is being fired when an item in the ListView is clicked to select it instead of being fired when the item is dragged. This is causing a problem when users click...
0
7479
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7411
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...
0
7926
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...
0
7773
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5343
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...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
722
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...

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.