以Windows窗体启动计时器 [英] Start the Timer in windows form

查看:110
本文介绍了以Windows窗体启动计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在画布中绘制签名时,我在Windows窗体中滚动鼠标时如何启动计时器,当我按下画布外的停止按钮时它应该停止??

解决方案

尝试访问您的老朋友,他的名字是GOOGLE,并经常访问,您的问题将得到解答。这里有一些链接



鼠标事件

http://stackoverflow.com/questions/18832747/mousewheel-scroll-down-event-in-c-sharp-winform-programmatically-done [ ^ ]



http://stackoverflow.com/questions/479284/mouse-wheel-event-c [ ^ ]





并停止按钮上的计时器

 timer1.Stop(); 


How to start timer when i scroll my mouse in windows form while drawing signature in canvas and it should stop when i will press stop button which is outside the canvas??

解决方案

try visit your old friend his name is GOOGLE and pay frequent visits and your question will be answered. here are some links

For Mouse event
http://stackoverflow.com/questions/18832747/mousewheel-scroll-down-event-in-c-sharp-winform-programmatically-done[^]

http://stackoverflow.com/questions/479284/mouse-wheel-event-c[^]


and to stop timer on button

timer1.Stop();


这篇关于以Windows窗体启动计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆