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,