Programmatically detect drop event in Microsoft Outlook 2010

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.
LVL 5
Tom KnowltonWeb developerAsked:
Who is Participating?
 
David LeeConnect With a Mentor Commented:
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
 
Tom KnowltonWeb developerAuthor Commented:
Understood...thx.

Let's see if anyone else comes along.  I'll close this after a few days if nobody else replies.
0
 
Tom KnowltonWeb developerAuthor Commented:
Thanks.
0
 
David LeeCommented:
You're welcome!
0
All Courses

From novice to tech pro — start learning today.