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:
00946311
Vues:
25
Kevin,

I finally found the "mojo" in the ProgresBar class. We made a region for ImmBindingBase and the code was collapsed, so I did not see it. In the BindingSource property, the Set has the following line:

ProgressDetail.Progress += new ProgressDelegate(this.ProgressHandler);

Following this code, I was able to add the form as a listner too. Now I can see the form method is also called during each loop iteration, but I still do not know how to test for the escape key?

The ProgressEventsArgs currently consists of 2 parameters (currentValue and maxValue). I would like to add (System.Windows.Forms.KeyEventArgs e) as a third parameter, but I don't want to break n-tier design.

My aBusiness class has the following code:

public void OnProgress(int currentValue, int maxValue)
{
if (this.Progress != null)
{
this.Progress(this,
new ProgressEventsArgs(currentValue, maxValue));
}
}

Thanks again any ideas.

Kind Regards,

Mat


>Just find the code that registers the progress bar as a listener for the business object event and do the same thing with the form-level method.
>
>Regards,
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform