Hi
I have for a company uses aspose.email v 23.2 in a .net 4.8 framework winforms application.
I have now made a .net 8 winforms application and installed aspose.email from NuGet.
But now I don’t have the namespace Aspose.Email.Windows.Forms.
I want to enable drop and drag from outlook to my app, but without this namespace I don’t know how to do it.
It used to be code like this:
class MyPanel : System.Windows.Forms.Panel
{
private Aspose.Email.Windows.Forms.FileDropTargetManager manager;
// Hook up
protected override void OnHandleCreated(EventArgs e)
{
this.manager = new Aspose.Email.Windows.Forms.FileDropTargetManager(this);
this.manager.EnsureRegistered(this);
base.OnHandleCreated(e);
}
// Unhook
protected override void OnHandleDestroyed(EventArgs e)
{
this.manager.EnsureUnRegistered(this);
base.OnHandleDestroyed(e);
}
}
Is it not possible to do a drag/drop from outlook to winforms anymore ?
Is it only in .net framework before .net 6 it works ?