计时器按钮点击事件自动

计时器按钮点击事件自动

问题描述:

大家好
在我的表单中有将近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.