定时器Timer.Tick事件
Timer组件添加到表单中.Tick活动.调用您需要调用的方法.例如:
private void timer1_Tick(object sender, EventArgs e)
{
button1_Click(this, EventArgs.Empty);
}
Run Code Online (Sandbox Code Playgroud)我以为你使用的是Windows Forms.
如果您使用的是WPF,则有DispatcherTimer课程.
| 归档时间: |
|
| 查看次数: |
5608 次 |
| 最近记录: |