/// <summary>
        /// 关键代码
        /// </summary>
        /// <returns></returns>
        [System.Runtime.InteropServices.DllImport("kernel32.dll")]
        static extern uint GetTickCount();
        static void Delay(uint ms)
        {
            uint start = GetTickCount();
            while (GetTickCount() - start < ms)
            {
                Application.DoEvents();
            }
        }

相关文章:

  • 2021-07-22
  • 2022-12-23
  • 2021-11-29
  • 2021-06-21
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-04
  • 2021-12-05
  • 2021-04-30
  • 2021-12-06
  • 2021-04-12
  • 2022-12-23
相关资源
相似解决方案