摘要: 解决方案一:(不推荐) 在构造函数处添加代码System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;禁止捕获对错误线程的调用 public Form1() { InitializeComponent(); System 阅读全文
posted @ 2022-08-01 13:23 芈璐 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 引用DLL [DllImport("winmm")] static extern uint timeGetTime(); [DllImport("winmm")] static extern void timeBeginPeriod(int t); [DllImport("winmm")] stat 阅读全文
posted @ 2022-08-01 13:01 芈璐 阅读(351) 评论(0) 推荐(0) 编辑