Questions tagged [idataobject]
26 questions
0
votes
0 answers
How can i determine whether DataObject from DragEventArgs is .msg or .eml file
I have a application, in which user can drag & drop files from any folder and also can d&d emails or email attachments from outlook application.
When drag event fires, I will operate with DragEventArgs, where args.Data is a (System.Windows)…

Uladzimir Sharyi
- 144
- 1
- 14
0
votes
1 answer
Copy composite of multiple objects to clipboard (c# winforms)
C# Winforms app, Windows 10.
Form has a richtextbox and a chart (both MS). Currently have a function to copy richtextbox to clipboard:
Clipboard.SetText(rtbContents.Rtf, TextDataFormat.Rtf);
and a function to copy chart to clipboard as an…

Aging Hippie
- 15
- 6
0
votes
1 answer
How do I get use GetData function of IDataObject without knowing the type?
I have developed a functionality where user can drag drop email attachments on my application.I am extracting the dropped attachment names passing "FileGroupDescriptor" format and using "FileContents" format for extracting the attachment stream.It…

V K
- 1,645
- 3
- 26
- 57
0
votes
1 answer
How can I copy the entire (all formats) of the clipboard
We need to copy and re-post what is in the clipboard - all formats. Is there a way to do this?
Here's the use case. We have small docx/pptx/xlsx documents that, in our Office AddIn, we want to enable the user to drag/drop into word/ppt/xl.…

David Thielen
- 28,723
- 34
- 119
- 193
0
votes
1 answer
WCF defines it's own version of a DataObject in the Service Reference
I’ve created an object that I would like to pass in a WCF call… but inside ServiceReference1… this object is redefined… is there a way to just use the original object everywhere… it seems like people have done this but I can’t figure out what I am…

Brian Rice
- 3,107
- 1
- 35
- 53
0
votes
1 answer
Office clipboard takes time to show changes
I am facing a very weird problem in Excel. I have overridden the CTRL+C and CTRL+V keys and on copy, I put my custom DataObject on the clipboard that contains both the Excel formats and my custom formats.
I copy my data to the clipboard and it gets…

A9S6
- 6,575
- 10
- 50
- 82
0
votes
3 answers
Get var type value in C#
var temp = toCheck.GetData(DataFormats.FileDrop);
I have the code above in my program. toCheck is an IDataObjecct containing a file(image to be specific) path.
When I debug, I see the value stored under as such:
temp -> {string[1]}
[0] ->…

user4238148
- 3
- 4
0
votes
0 answers
C++ Unable to get Async DragDrop functioning correctly
We currently have a Silverlight UI (which we are unable to change from at this stage) for our system, which has very limited drag drop capabilities. We are currently running out of browser with elevated trust. So in order to handle Silverlight's…

Matt
- 1
- 3
0
votes
1 answer
Save any file type copied into the Clipboard
I'm working with the code from this Stack article (specifically the second answer) to monitor when the clipboard changes. The end goal for this application is that the user can copy any file type (whether it's a .xlsx, .pk3, .sln, etc), folder, an…

Paul
- 1,375
- 2
- 21
- 55
0
votes
1 answer
Check if clipboard contains image or a file that is an image
I would like to check if the clipboard contains an image, or a file which is in an image format. I want to do it something like this:
private void myMethod()
{
//Check if the clipboard contains an image or a file, that is in image…

Ben
- 5,627
- 9
- 35
- 49
0
votes
1 answer
Create DataObject from Shell Run / Help (MFC C++)
I need help to create an IDataObject to enable drag and drop of these 2 Items (Run and Help)
For Example I need to do just like Windows Startmenu does.
to run them I use these
CComPtr pShellDisp;
if…

Carlos_rpg
- 71
- 1
- 12