16,555
社区成员
发帖
与我相关
我的任务
分享
Thread th=new Thread(new ThreadStart(MyMethod));
th.IsBackground=true;
th.Start();
public void MyMethod()
{
while(true)
{
//你的代码
Thread.Sleep(间隔时间分钟*60*1000);
}
}
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
MsgBox(“THIS IS FORM3")
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Form3.Timer1.Interval = 1000
Form3.Timer1.Enabled = True
End Sub