#StackBounty: #c# #drag-and-drop Drag Gmail attachment to c# winform

Bounty: 100

i’m trying to have may application accept attachments dragged in from the Gmail web page.

But when i drag i a attachment , directly from the site e.Data does nor seem to contain the data in any way.

    private void Form1_DragDrop(object sender, DragEventArgs e)
        string[] dataFormats = e.Data.GetFormats();
        Type type = e.Data.GetType();

e.Data is of type DataObject.
FileDrop, FileNameW, FileName are null
DragContext, DragImageBits, chromium/x-renderer-taint are System.IO.MemoryStream

Non of the Memorystream objects hold any file data of the attachment dragged in.
Nor any download url.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.