I have, what should be, a simple question on drag'n'drop. I have a fresh Win Form project where the form has set to allow drops using AllowDrop = true
. Should also mention that I am running Windows 7 64-bit.
Just to be sure, I have subscribed to
this.DragDrop += new System.Windows.Forms.DragEventHandler(Form1_DragDrop);
as well.
But when I run the app and drag anything from my desktop or explorer, it indicates with the mouse pointer icon that I am not allowed to drop any file(s) to it after all.
I found a a similar question like this one (but Win Vista) where the issue was that Visual Studio was running with admin priveleges which windows explorer wasn't. But building the app and running the executable results in the same problem.
I have done this many times in the past and couldn't Google my way to solve this one. What am I missing?