`
flon
  • 浏览: 12346 次
文章分类
社区版块
存档分类
最新评论

C#,代码,移动窗体

 
阅读更多

移动窗体

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);
}
}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics