How to close all running threads?

Posted by monkey_boys on Stack Overflow See other posts from Stack Overflow or by monkey_boys
Published on 2010-04-22T07:24:40Z Indexed on 2010/04/22 7:33 UTC
Read the original article Hit count: 156

Filed under:
|
|

When i used

  foreach (Form form in Application.OpenForms)
    {

        form.Close();
    }
    Application.Exit();

It not exit Application?

How can I exit the application making sure all running thread are closed?

© Stack Overflow or respective owner

Related posts about threads

Related posts about .NET