System.Threading.Tasks.Task.Factory.StartNew(() =>
{
while (istrue)
{
this.Invoke(new EventHandler(delegate
{
SendPackage(); // Process
}));
Thread.Sleep(PackageSendTime); // The interval between each time
}
});
VS-C# 不停循环发送,但不影响用户操作其他功能
最新推荐文章于 2023-01-05 20:41:22 发布