G
Gunnar
I have a winforms application that can encrypt and unencrypt files. I want
to support drag and drop files out to Windows Explorer.
In my current version I unencrypt my files in the MyListview_ItemDrag Event,
build an array of files and call DoDragDrop() with DataFormats.FileDrop.
This works, but I'm concerned about this architecture. If a user starts to
drag several files from my listView and all of these files are really BIG.
It can take some time to unencrypt these files and place them in a
directory. Meanwhile the application thread is busy and the application
seems unresponsive to the user.
As far as I know, no DragDrop-like Event will trigger in my code when I drop
in an external app like Explorer. So is there no way to postpone the
time-consuming part (unencrypting files) to the DragDrop part when the user
releases the mouse button??
I hope I'm wrong. Any tips, suggestions?
Regards, Gunnar Sundfar
to support drag and drop files out to Windows Explorer.
In my current version I unencrypt my files in the MyListview_ItemDrag Event,
build an array of files and call DoDragDrop() with DataFormats.FileDrop.
This works, but I'm concerned about this architecture. If a user starts to
drag several files from my listView and all of these files are really BIG.
It can take some time to unencrypt these files and place them in a
directory. Meanwhile the application thread is busy and the application
seems unresponsive to the user.
As far as I know, no DragDrop-like Event will trigger in my code when I drop
in an external app like Explorer. So is there no way to postpone the
time-consuming part (unencrypting files) to the DragDrop part when the user
releases the mouse button??
I hope I'm wrong. Any tips, suggestions?
Regards, Gunnar Sundfar