Vlad,
Thank you for the reply, this was very helpfull.
Kind Regards,
Mat
>Something like this:
>
>
>//in the UI
>oTask.DownloadDataProgressChanged+=new DownloadDataTask.DownloadDataProgressHandler(onProgressChanged -- defined in the main form);
> oTask.DowloadDataStatusChanged+=new DownloadDataTask.DownloadDataChangeStatusHandler(onStatusChanged--defined in the main form);
> oTask.ErrorDownloading+=new DownloadDataTask.DownloadDataError(onErrorDownload--defined in the main form);
> oTask.startDownloading(query);
>
>//in the UI
>private void onProgressChanged(sender object, EventArgs e){
> //i defined my custom eventarg inherited from eventargs
> this.progressBar.value=e.progress;
>}
>
>Hope it helps.
>
>Vlad