Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancel a long running process
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00945712
Message ID:
00946305
Vues:
20
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform