时间控件问题(请指教)
例如我有3个时间控件,time1,time2,time3
private void time1_Tick(object sender, EventArgs e)
{
time2.Enabled = true;
time3.Enabled = true;
}
private void time2_Tick(object sender, EventArgs e)
{
}
private void time3_Tick(object sender, EventArgs e)
{
}
我跟踪调试,为什么是先执行time3事件,然后才执行time2事件?能给解释一下吗?
private void time1_Tick(object sender, EventArgs e)
{
time1.Interval = 1*60000;
time2.Enabled = true;
time3.Enabled = true;
}
这个是在time1时间里等待一分钟,然后才往下执行吗?
------解决方案--------------------Thread.Sleep(1000);