3
Answers

File downloading in a BackgroundWorker

Photo of Pieter De Decker

Pieter De Decker

16y
6.2k
1
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)