Click here to Skip to main content
15,896,207 members
Articles / Productivity Apps and Services / Microsoft Office

Outlook Drag and Drop in C#

Rate me:
Please Sign up or sign in to vote.
4.93/5 (90 votes)
28 Jul 2008CPOL6 min read 606.9K   12.3K   115  
How to drag and drop multiple Outlook mail messages or message attachments to a C# WinForm.
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace DragDropTest
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Guava Development
Australia Australia
I am the Founder of Guava Development a Software Services Company located in Perth, Western Australia dedicated to improving productivity and reducing costs through the targeted and innovative application of software assisted workflows and packages.

I have been working in the industry for 10 years. My day job usually involves programming with C# but I have been known to mess around with just about everything.

Comments and Discussions