Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   Download An Image From A URL In background in C# WPF (http://www.go4expert.com/forums/download-image-url-background-c-sharp-t23661/)

THT 25Oct2010 12:48

Download An Image From A URL In background in C# WPF
 
Hi, I would like to download images in the background from an URL. I currently had a program which is downloading an image from a URL. However the application i created will "freeze" until all the image had be downloaded.

Hence, I am looking for a way to download images from an URL in the background. So i would be able to continue to use the program while it download.

I am new to C# (WPF) and I am still learning. Hope you guys can give me some suggestion or links for references. Thank you


Thank you very much!
Janet

dotNet Zombie 26Oct2010 01:15

Re: Download An Image From A URL In background in C# WPF
 
to do that, just create a nother thread to fire the method that is downloading the Images.

Code:

Thread firstThread = new Thread( new ThreadStart( MethodA) );
Code:

public void MethodA()
      {
        // Do Nothing
      }


THT 27Oct2010 14:04

Re: Download An Image From A URL In background in C# WPF
 
Hi dotNet Zombie,

Thank you for the prompt reply. I am trying out the code :) Will let u know if it is working.

Regards
THT

THT 27Oct2010 15:26

Re: Download An Image From A URL In background in C# WPF
 
Hi, it is able to work :) thank you very much!!


All times are GMT +5.5. The time now is 11:45.