开发者

Tab Page launching a timer

开发者 https://www.devze.com 2022-12-26 03:01 出处:网络
I have a project that uses a System.Timers.Timer to update the position of motors.I am adding 3 more motors and would like to control each of them the same way as the first.I tried moving my controls

I have a project that uses a System.Timers.Timer to update the position of motors. I am adding 3 more motors and would like to control each of them the same way as the first. I tried moving my controls to a Tab Control but my update timers are not triggering. I made the

UpdateTimer.SynchronizingObject = TheMainForm;

Because if I tried to make it the Tab Page I got an error. I am very new to threaded projects. What a开发者_开发问答m I doing wrong. Will post more code if its needed.


I decided to keep the timer on the main form then call each update method from that main timer.

0

精彩评论

暂无评论...
验证码 换一张
取 消