解决方案 »

  1.   

    把sleep的地方改为DateTime lastTime = DateTime.Now;
                DateTime currTime = lastTime;
                while ((currTime - lastTime).Ticks < 10000)
                {
                    Application.DoEvents();
                }
      

  2.   

    之所以死,是因为
                while (true)
                {
                    textBox1.Invoke(d1);
                }
    在主线程写这个当然死。另外
    t1.Suspend();
    不要这么写,停止或者挂起线程让线程自己做。
      

  3.   

    Thread.Sleep(10000); 写到while里面,而不要写到委托里面
    写到委托里,委托是主线程去调用,相当于主线程sleep
      

  4.   


    纠正一下 textBox1.Invoke(d1);  这句是在主线程运行的,而不是            while (true)
                {
                    textBox1.Invoke(d1);
                }
    在主线程与行的。