[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Programmatically detect drop event in Microsoft Outlook 2010

Posted on 2014-01-23
4
Medium Priority
?
493 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
  • 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
I came across an unsolved Outlook issue and here is my solution.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

830 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