wan't to write a outlook add-in which manipulate the email message when the user want to save the file local on the desk via drag and drop.
At the moment I'm not able to get the MouseDown event of the window. Is there an specific Windows Message which i can observe?
And is there any way to manipulate the data which is currently in the drag event?
Many thanks for you help!
I've already tried
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;
using System.Windows.Forms;
namespace OutlookAddIn1
{
public partial class ThisAddIn
{
Outlook.Explorer explorer;
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
explorer = Application.ActiveExplorer();
explorer.BeforeItemCopy += new Outlook.ExplorerEvents_10_BeforeItemCopyEventHandler(Explorer_BeforeItemCopy);
}
private void OnDragEnter(object sender, System.Windows.Forms.DragEventArgs e)
{
MessageBox.Show("OnDragEnter");
}
void Explorer_BeforeItemCopy(ref bool cancel)
{
MessageBox.Show("copied");
}
}
}