Hi, know this an older thread but I am trying to drop an email to a TreeView on a UserControl instead of a form in outlook 2007 using this dll/class and am getting an "Unable to initialize object" error (copied below). I am using VS 2008 and this application is dot net 4. hoping I'm just not initializing this correctly or something?

Any help appreciated.

Have this at top of the class
Code:
Public Class myUserControl

    Public WithEvents clsDropProcess As DragDropProcess.DragDropProcess  'This is so we can handle the drop event
And this is my UserControl Load function
Code:
    Private Sub UserControl1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'DRAG DROP
        Me.TreeView1.AllowDrop = True
        clsDropProcess = New DragDropProcess.DragDropProcess(TreeView1) 'Create a new instance of the class and pass the control that you want to allow files to be dropped on
        AddHandler clsDropProcess.DroppedByteArrayAvailable, AddressOf DropEvent 'Add a handler to get the files/emails that have been dropped

        InitializeRoot()
    End Sub

System.Exception was unhandled by user code
Message=Unable to initialise object.
Source=DragDropProcess
StackTrace:
at DragDropProcess.DragDropProcess..ctor(Object sender) in D:\My Documents\Visual Studio 2005\Projects\DragDropProcess\DragDropProcess\clsMain.vb:line 1060
at OutlookExplorer.myUserControl.UserControl1_Load(Object sender, EventArgs e) in C:\Users\my.name\Desktop\Scripts\VB.Net\OutlookExplorer\OutlookExplorer\myUserControl.vb:line 30
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException: System.NullReferenceException
Message=Object reference not set to an instance of an object.
Source=DragDropProcess
StackTrace:
at DragDropProcess.DragDropProcess..ctor(Object sender) in D:\My Documents\Visual Studio 2005\Projects\DragDropProcess\DragDropProcess\clsMain.vb:line 1042
InnerException: