计时器按钮点击事件自动 [英] timer button click event automatically

查看:359
本文介绍了计时器按钮点击事件自动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
在我的表单中有将近10个按钮.
所有这10个按钮都可以在上午10:30下午单击拨号对话框.所有这10个按钮都将执行相同的工作(例如,下载)

我想使用计时器控件.
我该怎么办?任何人都可以建议代码.

我可以在同一页面中使用多个计时器控件吗?

hi to all
in my form nearly 10 buttons.
all the 10 buttons can click dialy morning @10:30 pm.all the 10 buttons will do same work(eg;Download)

i want to use the timer control.
how i will do? can any one suggest the code.

can i use more than one timer control in same page?

推荐答案

听起来,您的第一个错误是将按钮开始的代码放在按钮中单击事件处理程序.将代码移至其自己的Sub,然后您可以轻松地从其他任何地方调用它,只要发生Timer的Tick事件即可.
It sounds like your first mistake was to put the code that the button is kicking off in the button Click event handlers. Move that code to its own Sub and then you can easily call it from anywhere else, event the Tick event of a Timer.


这篇关于计时器按钮点击事件自动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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