https://www.codeproject.com/articles/13272/crafting-a-c-forms-editor-from-scratch
C#主线程延时但是不卡
public static bool Delay(int delayTime) { DateTime now = DateTime.Now; int s; do { TimeSpan spand = DateTime.Now - now; s = spand.Seconds; Application.DoEvents(); } while (s < delayTime); return true; }