Re: How to create responsive drag and drop experience even if lots of processing is required

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If you're using the 2.0 runtime take a look at the BackgroundWorkerThread
for doing your decryption. You can put a placeholder on the drop target
while the files are being decrypted and get an asyncronous notification of
the process progress and notification.



--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.



"Gunnar" <sundfar@xxxxxxxxxxxxxxxxxxx> wrote in message
news:OAx8klcoGHA.2268@xxxxxxxxxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • RE: Password "security" - was"Passwords with Lan Manager (LM) und er Windows" an
    ... "If files were encrypted under Windows XP or Windows ... complement it with other protection measures, ... "Advanced EFS Data Recovery is a program to recover ... Besides, decryption is possible even ...
    (Pen-Test)
  • Re: How to Decrypt EFS Files in Win XP Pro when OS is lost.
    ... It seems from the OPs post the keys are gone so that tool will not work. ... > Advanced EFS Data Recovery is a program to recover ... > files encrypted on NTFS partitions created in Windows 2000, ... decryption is possible even when Windows is ...
    (microsoft.public.windowsxp.security_admin)
  • Re: How to create responsive drag and drop experience even if lots of processing is required
    ... you can use the BackgrounWorkerProcess ... and do the actual decryption in the DoWork event handler. ... Of course you'll want to NOT respond to drag drop events (since your ... In my current version I unencrypt my files in the MyListview_ItemDrag Event, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: PGP on Linux
    ... gnupg has a windows port that runs just fine. ... Initially it didn't download ... Then imported the keys into GPG ... The decryption was a piece of cake! ...
    (comp.os.linux.misc)
  • Problem in decryption of file
    ... I have been using certificates for encryption and decryption using c# dot ... I also verified encrypted data by decrypting it by windows application.It ...
    (microsoft.public.dotnet.framework.compactframework)