Questions tagged [idataobject]
26 questions
4
votes
3 answers
How to perform a deep copy of an object not marked as serializable (in C#)?
I am attempting to create a Clipboard stack in C#. Clipboard data is stored in System.Windows.Forms.DataObject objects. I wanted to store each clipboard entry (IDataObject) directly in a Generic list. Due to the way Bitmaps (seem to be) stored I am…

cgray4
- 81
- 2
- 5
3
votes
2 answers
IDataObject.GetData() always returns null with my class
I have a class which I marked as [Serializable] that I'm trying to copy through the clipboard. Calling GetData() always returns null.
Copy code:
IDataObject dataObject = new DataObject();
dataObject.SetData("MyClass", false,…

Trevor Elliott
- 11,292
- 11
- 63
- 102
2
votes
1 answer
How can I create a IDataObject instance with Delphi?
This C++ code shows how OLE can be used to simulate a file drag and drop to simulate a 'Send to...' operation. This will open the standard mail client with the selected file(s) as an attachment, a very interesting alternative to the mailto:…

mjn
- 36,362
- 28
- 176
- 378
2
votes
1 answer
File/Folder right-click 'Copy' action, how does it copy to clipboard?
I'm making an app that has some functionality of windows explorer. Actually I have to make a copy/paste actions. My question is what does windows copy to clipboard, when I'm right-clicking the file and the choose 'Copy'?
Here's my Paste code:
var…

GaaRa
- 520
- 6
- 21
2
votes
1 answer
VirtualFileDataObject implementation does not work for Outlook 365
I have followed the example found here. It implements the IDataObject interface to create a "virtual file" dataobject. The implementation works perfectly well when d/d the virtual files from a WPF application to the file system and outlook emails…

EPR
- 61
- 5
2
votes
1 answer
how can i add (append) custom format to clipboard
I try to create a clipboard monitor program, i need to detect when data set from my app and then i can ignore them, for this work i try to add custome format to clipboard so first of all register new format with this code :
int iii =…

MrUnknow
- 359
- 3
- 18
1
vote
1 answer
How to copy IDataObject value to another IDataObject?
I want go get value from 'd' IDataObject to 'c' IDataObject in C# but my 'c' possess value from my Clipboard even when i won't click D key. How can I give independent value from one IDataObject to second?
First function:
if…

Dawid SoChii Sokół
- 43
- 5
1
vote
1 answer
Drag and Drop from Outlook into Winforms
When dragging items from Outlook email into a Winforms app (Control is a GalleryControl by DevExpress, the DragDrop event is not firing, even though i manually set 'DragDropEffects.Move` in the DragEnter event handler. (have confirmed that this is…

Brendan Gooden
- 1,460
- 2
- 21
- 40
1
vote
0 answers
How can I determine the source process/hWnd for a Drag and Drop operation from drop target
My C# Windows application accepts drag operations, and I'd like to be able to identify the hWnd and/or Process ID of the source. Is this possible, and how would I go about determining it?
I've tried getting the active window when the drag-over…

ThunderFrame
- 9,352
- 2
- 29
- 60
1
vote
0 answers
Drag and Drop From HTML pages to C++ applications
I am trying to implement Drag And Drop Functionality from Web Pages to C++ Applications.
I am setting text on drag to dataTransfer object and now trying to access it on DropTarget from IDataObject. To Get Data from IDataObject, we need to specify…

Kailas
- 807
- 1
- 6
- 20
1
vote
1 answer
Retrieving filename from IDataObject in Delphi
I'm building a Delphi XE3 application which needs to be able to have files dropped onto it. I have the Explorer > Application side of things working, but for the life of me can't figure out to get the filename when going from Application >…

Ranky
- 117
- 1
- 7
1
vote
1 answer
Using a subclassed DataObject as Clipboard DataObject
When I try the following the results are unexpected. Any ideas will be most appreciated!
Class DataObjectSub
Inherits DataObject
End Class
Sub Test()
Dim myObject = New DataObjectSub
myObject.SetData("Test")
…

cak
- 11
- 1
- 4
1
vote
1 answer
Getting multiple Outlook attachments from the clipboard
I'm trying to get multiple Outlook attachments from the clipboard.
When a user chooses multiple attachments and places them in the clipboard (or drag them), an IDataObject is being created and is being placed in the clipboard.
I know that the file…

TCS
- 5,790
- 5
- 54
- 86
0
votes
1 answer
OleClipboard and IDataObject under local SYSTEM account
There is an implementation of remote file transfer via dragging virtual files using IStream/IDataObject (based on Raymond Chen's blog topic: What a drag: Dragging a virtual file (IStream edition)).
Basically, it works good. But if the application is…

lfk
- 57
- 7
0
votes
1 answer
C# Clipboard and DataObject not behaving as expected
I'm trying to use the Clipboard to store selected objects in a program I've written, for the purposes of copy and paste (obviously). My copy code is:
DataObject oWrapper;
Clipboard.Clear();
oWrapper = new…

Mark Roworth
- 409
- 2
- 15