Shell Drop handler works only to drop file on another file

Dec 19, 2014 at 7:16 AM
Hi,

I can't handle explorer drop event when I drop file not on the another file but in the empty place. When I drop file on another file that works correct.
What I made wrong?
My code is:
    [ComVisible(true)]
    [COMServerAssociation(AssociationType.AllFiles)]
    public class CustomDropHandler : SharpDropHandler
    {
        protected override void DragEnter(DragEventArgs dragEventArgs)
        {
            dragEventArgs.Effect = DragDropEffects.Move;
        }

        protected override void Drop(DragEventArgs dragEventArgs)
        {
            string message = "";
            foreach (string path in DragItems)
            {
                message += path;
            }
            MessageBox.Show(message);
        }
    }
Thanks in advance!