C# thread.sleep(1000);不执行
我有以下一段代码,我用断点看过了,没有执行thread.sleep(1000);,怎么会这样呢?privatevoidForm2_Load(objectsender,Ev...
我有以下一段代码,我用断点看过了,没有执行thread.sleep(1000);,怎么会这样呢?
private void Form2_Load(object sender, EventArgs e)
{
for (int i = 0; i < this.Height; i++)
{
this.Location = new Point(this.Left, this.Top - 1);
}
Thread.Sleep(1000);
}
I'am sorry!我把那放在for语句里面才对,还是很感谢两位人兄 展开
private void Form2_Load(object sender, EventArgs e)
{
for (int i = 0; i < this.Height; i++)
{
this.Location = new Point(this.Left, this.Top - 1);
}
Thread.Sleep(1000);
}
I'am sorry!我把那放在for语句里面才对,还是很感谢两位人兄 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询