c# - New Outlook: Dragging attachments returns empty FileDrop array - Stack Overflow

Its about the new Outlook for windows, often referenced as "Outlook (new)", and dragging an a

Its about the new Outlook for windows, often referenced as "Outlook (new)", and dragging an attachement directly from an E-Mail into a Dropzone.

Actually we are using a Windows Forms drop zone with the "DragDrop" event handler:

   private void MainForm_DragDrop(object sender, DragEventArgs e)
    {
        try
        {
            if (e.Data.GetDataPresent(DataFormats.FileDrop))
            {
                string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
                {

While this works well from within the "old" Outlook or e.g. for a file dragged from the windows explorer, there is a problem, when dragging an attachment from within the new outlook.

The event is still beeing fired, and "e.Data.GetDataPresent(DataFormats.FileDrop)" returns a TRUE. "e.Data.GetData(DataFormats.FileDrop)" however delivers an empty array. No array elements - no files ...

Thanks for your help!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744932007a4601796.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信