C# Timer控件重启定时器

子线程内:

 

this.Invoke(new Action(()=>

{

    timer.Stop();

    timer.Start();

    //timer.Enable=true;

}));委托处理

主线程:

      timer.Stop();

     timer1.Start();

posted @ 2022-04-21 10:43  随风逝  阅读(208)  评论(0编辑  收藏  举报