일반적으로 C#에서 Delay를 줄때 using system.Threading; Thread.sleep(3000); sleep을 사용할수 있다. 하지만 해당 시간 동안 프로그램이 정지하게 된다. 정지없이 Delay를 주고 싶다면 사용 해보도록 하자. private static DateTime Delay(int MS) { DateTime ThisMoment = DateTime.Now; TimeSpan duration = new TimeSpan(0, 0, 0, 0, MS); DateTime AfterWards = ThisMoment.Add(duration); while (AfterWards >= ThisMoment) { System.Windows.Forms.Application.DoEvents(); ThisMoment = DateTime.Now; […]