if (this.Width >= 600)
{
timer1.Enabled = false;
}
else
{
this.Width += 30;
}
if (this.Width >= 600)
{
timer1.Enabled = false;
}
else
{
this.Width += 30;
}
转载于:https://www.cnblogs.com/codemouserman/p/4154287.html