以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  遍历所有 MyTimers 这个代码怎么写?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=143705)

--  作者:ljh29206
--  发布时间:2019/12/2 14:04:00
--  遍历所有 MyTimers 这个代码怎么写?

For Each b As object In MyTimers
b.Enabled = True
Next

这样写不行


想 一次性开启 关闭  计时器

--  作者:y2287958
--  发布时间:2019/12/2 14:18:00
--  
For Each tm As Timer In mytimers.values
    tm.enabled = True
Next

--  作者:ljh29206
--  发布时间:2019/12/2 14:28:00
--  
 y2287958 
可以 
谢谢了