ITeye博客

C#,代码,移动窗体

flon · 2008-09-15 11:04 · Markdown

移动窗体

Screen p;

p = Screen.AllScreens[0];
this.Top = p.WorkingArea.Height - 5;
this.Height = 1;
int i;
for (i = 0; i < 120; i++)
{
Thread.Sleep(5);
if (this.Height >= 360)
{

}
else
{
this.Left = p.WorkingArea.Width - this.Width;
this.Top = this.Top - 3;
this.Height = this.Height + 3;
this.Show();
this.Refresh();
Thread.Sleep(5);
}
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。