c#里,我写了个控制台程序,想让程序运行到一个地方之后暂停运行10秒钟?10秒钟后再继续运行后面的代码。
代码怎么写?
在线等待!谢谢!

解决方案 »

  1.   

    System.Threading.Thread.Sleep(10 * 1000);
      

  2.   

    看能不能调用延迟方法
    System.Threading.Thread.Sleep(毫秒)菜鸟的见解哈 有不妥请见谅
      

  3.   

    添加一个Timer控件,设定Interval=10000
    enable=true
    在Timer控件Tick事件中写入程序开始运行的事件
      

  4.   

    使用系统主线程休眠10秒就可以啦  
    System.Threading.Thread.Sleep(10 * 1000); //单位为毫秒
      

  5.   

    System.Threading.Thread.Sleep(10 * 1000); 
    使用线程