webclient freezes application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am trying to use webclient to download a file from a windows application
and I notice that the application freezes while the file downloads. The file
is about 300k so it takes a few seconds for it to download.

Is there anyway to download the file on the background so the user can still
use the application while its downloading the file?

thanks
 
ddd,

This is in my opinion the best sample where MultiThreading is real
effective, there cannot be any doubt about that.

I hope this helps?

Cor
 
* =?Utf-8?B?ZGRk?= said:
I am trying to use webclient to download a file from a windows application
and I notice that the application freezes while the file downloads. The file
is about 300k so it takes a few seconds for it to download.

Is there anyway to download the file on the background so the user can still
use the application while its downloading the file?

Yes, in a background thread.

Multithreading:

<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms06112002.asp>
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms08162002.asp>
<URL:http://msdn.microsoft.com/library/en-us/dnforms/html/winforms01232003.asp>

<URL:http://www.devx.com/dotnet/Article/11358/>

<URL:http://msdn.microsoft.com/library/e...SystemWindowsFormsControlClassInvokeTopic.asp>

Multithreading in Visual Basic .NET (Visual Basic Language Concepts)
<URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconthreadinginvisualbasic.asp>
 
However I am not sure if I need to specify background thread or not.

When you do not abort it in the closing of your main thread you can do that,
I do not see any reason in your occassion why not by the way..

Cor
 

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

Similar Threads


Back
Top