In what context are you running your loop? Are you running it in a button press handler or something like that?
If that's the case, then try adding Application.DoEvents(); while waiting for Stopped to go true, to allow the form to process events.
Ay any rate, your code works as expected for me.
Users browsing this forum: No registered users and 1 guest