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

Windows Exlorer Cut/Paste Events?

Short Question:
How do I support Cut/Paste to/from a .NET app and Windows Explorer?

Full Text:
I'm nearing the completion of a Remote File Management application.
It looks and feels a lot like Windows Explorer. The difference is
that it communicates with a remote server via web services. The
remote web services store and retrieve the file bits to/from a
database... along with some other bells and whistles that Explorer
doesn't have.

I've got full support for drag and drop between my app and the
desktop/
Windows Explorer, but a new requirement has come up that I have to
add
cut/copy/paste between my application and Windows Explorer. I've got
copy working just fine from my Edit/Copy menu (I just do a
Clipboard.SetFileDropList(FileCollection) after copying them to a
temp
folder), then Windows Explorer can use it's Edit/Paste menu to get
the
files. My delima relates to the "Cut" command:

If the user selects fils and/or folders from my app, then chooses
Edit/
Cut from my menu, then goes to Windows Explorer and chooses Edit/
Paste, How do I know when Windows Explorer has successfully completed
the paste so I can then remove the files from my remote system? I
assume there's some sort of system event that I either need to
subscribe to or poll?

Same question in reverse. When someone cuts from Windows Explorer
and
pastes into my app, how do I let Explorer know that I've stored the
files successfully, so Explorer can then delete the files locally?

TIA!

Nov 7 '07 #1
1 4573
Any takers?

On Nov 7, 11:45 am, CSharpner <csharp...@gmail.comwrote:
Short Question:
How do I support Cut/Paste to/from a .NET app and Windows Explorer?

Full Text:
I'm nearing the completion of a Remote File Management application.
It looks and feels a lot like Windows Explorer. The difference is
that it communicates with a remote server via web services. The
remote web services store and retrieve the file bits to/from a
database... along with some other bells and whistles that Explorer
doesn't have.

I've got full support for drag and drop between my app and the
desktop/
Windows Explorer, but a new requirement has come up that I have to
add
cut/copy/paste between my application and Windows Explorer. I've got
copy working just fine from my Edit/Copy menu (I just do a
Clipboard.SetFileDropList(FileCollection) after copying them to a
temp
folder), then Windows Explorer can use it's Edit/Paste menu to get
the
files. My delima relates to the "Cut" command:

If the user selects fils and/or folders from my app, then chooses
Edit/
Cut from my menu, then goes to Windows Explorer and chooses Edit/
Paste, How do I know when Windows Explorer has successfully completed
the paste so I can then remove the files from my remote system? I
assume there's some sort of system event that I either need to
subscribe to or poll?

Same question in reverse. When someone cuts from Windows Explorer
and
pastes into my app, how do I let Explorer know that I've stored the
files successfully, so Explorer can then delete the files locally?

TIA!

Nov 13 '07 #2

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

Similar topics

1
by: KK | last post by:
Windows Forms Inheritance, Incomplete? I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can be used effectively if the...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
2
by: khng | last post by:
How to disable the copy/drag event for some selected textfield as I want the user to key in instead of copy or drag the required information. For IE, I done it with the onPaste and onDragEnter...
13
by: halbenca | last post by:
Is this possible with Javascript in anyway? :)
17
by: Steve | last post by:
I'm trying to code cut, copy, and paste in vb 2005 so that when the user clicks on a toolbar button, the cut/copy/paste will work with whatever textbox the cursor is current located in (I have...
6
by: =?Utf-8?B?TWljaGFlbCAwMw==?= | last post by:
I need to disable the clipboard function in Windows XP. We are having a problem with users using CTRL+C in one program, then using CTRL+V in another. Specifically, they type their password into...
2
by: yevron2 | last post by:
Hello, I am tring to write a clipboard spy that catches events from the clipboard. I used the SetClipboardViewer api to get events when data is copied into the clipboard, and also...
13
by: robert.waters | last post by:
Do you have your users rely on the windows taskbar to manage/navigate between the forms they have open, or do you provide another (more robust) method? Does anyone use a custom navigation system...
0
by: Terry Reedy | last post by:
Gabriel Genellina wrote: You can paste a multi-line statement and it gets executed. You can paste in more, and the first may be executed, but anything after is ignored. I presume you are...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.