B
Bill
I am copying data from one FileStream to another in a loop. Inside the
loop I display progress messages in a StatusBar. The form has a Stop
button that sets a private Boolean variable to true. Also inside the
loop I check that value of the variable and exit the loop if it is true.
I have two problems. First, clicking the Stop button has no effect.
It's Click event handler does not execute. Second, if I drag the form
to a different location on the screen the progress messages stop
displaying even though I call StatusBar.Refresh in the loop.
What should I call in the loop to allow messages and events to be
processed?
loop I display progress messages in a StatusBar. The form has a Stop
button that sets a private Boolean variable to true. Also inside the
loop I check that value of the variable and exit the loop if it is true.
I have two problems. First, clicking the Stop button has no effect.
It's Click event handler does not execute. Second, if I drag the form
to a different location on the screen the progress messages stop
displaying even though I call StatusBar.Refresh in the loop.
What should I call in the loop to allow messages and events to be
processed?