Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel a long running process
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00945712
Message ID:
00946305
Views:
18
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
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Previous
Reply
Map
View

Click here to load this message in the networking platform