【发布时间】:2010-10-28 03:03:33
【问题描述】:
我正在尝试允许将在 Novell GroupWise 中打开的电子邮件中的附件拖放到我的 C# WinForms 应用程序中。标准的 .NET 功能不起作用。
在控件的 DragDrop 事件中,e.Data.GetFormats() 返回以下内容。
FileGroupDescriptorW
FileGroupDescriptor
FileContents
attachment format
我可以使用 e.Data.GetData("FileGroupDescriptor") 获取文件名并转到位置 76。
不幸的是,e.Data.GetData("FileContents") 在 System.Windows.Forms.dll 中导致第一次机会 System.NotImplementedException 并返回 null。附件格式也返回null。
我的搜索告诉我,拖放操作比我想象的要复杂得多 :) GroupWise 似乎使用了一种名为 CFSTR_FILECONTENTS 的格式,但这只是猜测。附件可以成功拖放到Windows桌面或其他文件夹中。
感谢您的任何建议。
【问题讨论】:
-
很高兴知道我不是唯一一个不得不与 Groupwise 合作的可怜人。
标签: .net winforms drag-and-drop groupwise