C#winform如何实现多显示器显示不同的内容

2025-04-12 14:57:20
推荐回答(1个)
回答1:

如要将窗体移到辅显示器上显示,只需一行代码:
this.DesktopLocation=Screen.AllScreens[1].Bounds.Location;
如果要在辅显示器上全屏显示:
this.FormBorderStyle=FormBorderStyle.None;
this.DesktopBounds=Screen.AllScreens[1].Bounds;