windows explorer - Drag and Drop from another application with mouse button down does not fire event -


I'm trying to drag and drop a file on a control in my application. The problem is that when you press the mouse button (such as pulling it from the widow Explorer), my app does not stop the events of any form, if the mouse is not down, then they all work fine. I need to enable 'AllowDrop' for the application (which has been enabled on this form) which appear on

Am I missing?

I am developing in vb.net 2008 in Windows 7 Environment

AllowDrop needs to be enabled for control / you want to leave on objection.

You also need to update DragDropEffects or in or DragOver event. This allows you to respond to valid and supported or unsupported drop items.

  Personal Sub UserControl11_DragEnter (ByVal handles this form, byVal e System.Windows.Forms.DragEventArgs) UserControl11.DragEnter eEffect = DragDropEffects. All End Sub  

Comments