Solved

Programmatically detect drop event in Microsoft Outlook 2010

Posted on 2014-01-23
4
475 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 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

726 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