Threading.Timer vs. Forms.Timer

前端 未结 3 1806
忘掉有多难
忘掉有多难 2020-12-13 14:45

The short form of this question: When, if ever, is it appropriate to use the Forms.Timer in a multithreaded WinForms application?

More specifically, I am architectin

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-13 15:29

    I agree with what Mehrdad and David said, but you should be aware that timers offer no guarantee of timeliness or order or execution. Too many timers and the application will just hang ;-)

提交回复
热议问题