?
Solved

Programmatically detect drop event in Microsoft Outlook 2010

Posted on 2014-01-23
4
Medium Priority
?
480 Views
Last Modified: 2014-02-21
Curious to receive some guidance in accomplishing the following in C#:

1 - Select some text
2 - Click and drag that text until you hover a folder in "Mail" inside of MS Outlook 2010.
3 - "Drop" that text on top of the folder.
4 - This action results in the creation of a sub folder named with the text you dragged and dropped.


(Right now the behavior is to create a new email message with the dropped text as part of the e-mail body.  Which is cool.  Just ...  not what I want)

I would imagine there is some sort of hook into MS Outlook so that some things can be automated in this fashion.  But I am not well acquainted with it.
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 2000 total points
ID: 39806449
The only "hook" into Outlook is through Outlook's object model.  Unfortunately, the object model does not have an event that's triggered by dropping text on a folder object.  That's a bit surprising since each folder object has an Items collection and each Items collection has an event, ItemAdd, that's triggered when you drop an object on a folder.  It might be possible to hack a solution through the Windows API, but Outlook itself doesn't offer any solution that I know of (I have to leave room for some undocumented hack that I'm not aware of).
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 39806909
Understood...thx.

Let's see if anyone else comes along.  I'll close this after a few days if nobody else replies.
0
 
LVL 5

Author Closing Comment

by:Tom Knowlton
ID: 39874078
Thanks.
0
 
LVL 76

Expert Comment

by:David Lee
ID: 39876613
You're welcome!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question