[STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
.....
    thread = new Thread(new ThreadStart(test));
            thread.Start();
.....
public void test()
{
if(something)
Application.Exit();
}
如上。我先在Form1里面启动了一个线程(thread)。线程用于检测一个调用的结果(something)。现在我想在线程中关闭Applicaion。求教,如何关闭。Application.Exit()貌似不行。因为thread还没有结束还是什么原因的。
米脂