且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在底部位置的winform离开屏幕的角落

更新时间:2023-12-01 16:09:34

使用 Screen.PrimaryScreen.Bounds 属性和设置 this.TopMost =真。这个作品:

Use Screen.PrimaryScreen.Bounds properties and set this.TopMost = true. this works:

int y = Screen.PrimaryScreen.Bounds.Bottom - this.Height;
this.Location = new Point(0, y);
this.TopMost = true;