开发者

Tab Page launching a timer

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜