Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Programmatically detect drop event in Microsoft Outlook 2010

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
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…
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.

610 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