C# button 三分钟自动运行一次

来源:百度知道 编辑:UC知道 时间:2024/05/20 22:48:12

timer控件就行
设置this.timer1.Interval = 1000 * 60 * 3;
然后添加事件就行了
private void timer1_Tick(object sender, EventArgs e)
{
this.button1.PerformClick();
}

使用Timer控件 Tick=180000

1楼正解`楼主直接给分吧```

哪有分啊。。