Share via

New outlook (2024) drag drop problem

Marc Al 206 Reputation points
2023-12-07T12:23:59.95+00:00

Hello,

I have an application where a user drops a mail (from outlook 365) and I make a copy of the mail) for archive purpose.
All is working perfectly but I have seen a message telling me that there will be a new outlook in 2024 (that I can try)

and it is not working anymore.

I have seen that I must use (in the Drag_Drop event)

if (e.Data.GetDataPresent("Chromium Web Custom MIME Data Format"))

{

}

But I have no idea what I can do with the result. Do you know where I can find information on the format? I have seen links with the source code of Chromium but I have no idea what to do with it in c#.

Thank you

Microsoft 365 and Office | Development | Other
Outlook | Windows | Classic Outlook for Windows | For business
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


1 answer

Sort by: Most helpful
  1. Wolfgang Knauf 0 Reputation points
    2026-05-14T10:58:46.8733333+00:00

    As I found this answer myself while experimenting with Outlook New, I will share my findings.

    I posted C# code for parsing the "Chromium Web Custom MIME Data Format" here: https://stackoverflow.com/questions/68745902/what-is-the-data-format-specification-for-chromium-web-custom-mime-data-format/79941017#79941017

    For Outlook New, this does not help much: the value is just a JSON string with metadata of the dragged mail.

    If you want the real mail (or a mail attachment) as a plain file, you have to implement async drop.

    This code sample demonstrates it: https://github.com/Nussbaum-Transportation/new-outlook-async-dragdrop/ (horrible interop code, but it works).

    And .NET10 will bring async drop for WinForms applications out of the box: https://github.com/dotnet/winforms/issues/13422 which reduces the code amount for async drop to just a few lines.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.