3
Reply

File downloading in a BackgroundWorker

Pieter De Decker

Pieter De Decker

Apr 11 2009 4:57 AM
5.8k
Currently, I can do

string strXMLfile = FileDownload("http://link/to/some/xml/file");

to download the contents of a file into a string. Is there a way to execute the file download in a BackgroundWorker and still have the method FileDownload return the contents of the requested file?

Answers (3)