asynch + ui

G

Guest

Hi,

I need help on how to check and wait if an async
....
DownloadDelegate download = new DownloadDelegate(DownloadFile);
IAsyncResult aResult = download.BeginInvoke(null, null); // start download
asynch.
aResult.AsyncWaitHandle.WaitOne(); // wait for download completes
download.EndInvoke(aResult); // download all files are done
....

But now I am having the problem with the winform - it is locked (because of
the WaitOne()).

So, how do I wait and see if an async. operation is done and not locking UI
thread?

Thanks in advance,
-P
 
A

Andy Mortimer [MS]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top