Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1507
  • Last Modified:

Drag and drop of lotus notes email into WinForm application

One of my c# app. give the possibility to drag and drop a outlook email into awinform application. Now some clients want it on Lotus Notes. I want to be able to get the content (title, message, attachments) of a lotus notes email dropped into a c#application... any idea?
2 Solutions
Bob LearnedCommented:
I would start by examining the available formats from the Data object from the DragDrop event handler.

IDataObject.GetFormats Method ()
private void GetFormats1() 
    // Creates a data object using a string and the Text format.
    DataObject myDataObject = new DataObject(DataFormats.Text, "My text string");
    // Gets all the data formats and data conversion formats in the data object.
    String[] allFormats = myDataObject.GetFormats();
    // Creates the string that contains the formats.
    string theResult = "The format(s) associated with the data are: " + '\n';
    for(int i = 0; i < allFormats.Length; i++)
        theResult += allFormats[i] + '\n';
    // Displays the result in a message box.

Open in new window

Sjef BosmanGroupware ConsultantCommented:
No drag-drop to external applications is available in Notes, sorry. But there are lots of ways to get to your mail content, from Notes and from outside Notes.

Here's an (older but probably still working) example:

And another example:
pgirardierAuthor Commented:
Thanks a lot.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now