避免应用程序界面卡死

  [STAThread] public static void Main(string[] args) { new Thread(() => { while (true) { Application.DoEvent(); Thread.Sleep(new TimeSpan(0, 0,0,5)); } }).Start(); Application.Run(new Form(args)); }

你可能感兴趣的:(thread,String)