virtual-screen

How can I check that a window is fully visible on the user's screen?

喜欢而已 提交于 2020-06-11 16:58:27
问题 Is there a way to check that a WinForm is fully visible on the screen (eg is not out of bounds of the screen?) I've tried using SystemInformation.VirtualScreen for this, which works great as long as the virtual screen is a rectangle, but as soon as it's not (eg 3 screens in a L shape), SystemInformation.VirtualScreen returns the smallest rectangle containing all the visible pixels (so a window on the upper right corner of the L won't be visible although it's in the virtual screen) The reason

How can I check that a window is fully visible on the user's screen?

余生颓废 提交于 2020-06-11 16:58:13
问题 Is there a way to check that a WinForm is fully visible on the screen (eg is not out of bounds of the screen?) I've tried using SystemInformation.VirtualScreen for this, which works great as long as the virtual screen is a rectangle, but as soon as it's not (eg 3 screens in a L shape), SystemInformation.VirtualScreen returns the smallest rectangle containing all the visible pixels (so a window on the upper right corner of the L won't be visible although it's in the virtual screen) The reason