c#怎么做 像QQ聊天窗体的抖动

来源:百度知道 编辑:UC知道 时间:2024/06/15 19:45:02
c#怎么做 像QQ聊天窗体的抖动

public bool alreadyshow = false;
int i = 0;
private void timer2_Tick(object sender, EventArgs e)
{
if (i < 1000)
{
if (alreadyshow)
{
this.Left += 5;
this.Top += 5;
alreadyshow = false;
}
else
{
this.Left -= 5;
this.Top -= 5;
alreadyshow = true;
}
i++;
}
else
{

}
}

学习了