How to enable drag files into whole form on c#?

113 views Asked by At

I have a windows form, into which I want to enable drag & drop attachments.

I've activated myForm_DragEnter and myForm_DragDrop events and it seems to work.

However, In one place (treeListView), I can't perform the drag action.

How can I resolve this issue? I don't want to enable dragging into the treeListView, but to the form...

1

There are 1 answers

2
icaptan On

Enable dragging into the treeListView and send the dragged item to the form. Send a reference of Form to the treeListView or simple call directly Form's drag function.