what's the difference between the sum of a screens WorkingArea and it's Bounds
Asked Answered
R

2

1

In the .NET, what is the difference between

myScreen.WorkingArea.Left + myScreen.WorkingArea.Right  

and

myscreen.Bounds
Rule answered 26/4, 2011 at 23:37 Comment(1)
Left + Right is an arbitrary number. Use Right - Left or Width. The difference with Bounds.Width is the 'appbars'. Like the Windows Taskbar, there can be more than one.Proletarian
A
6

Working Area:

Gets the working area of the display. The working area is the desktop area of the display, excluding taskbars, docked windows, and docked tool bars.

Bounds:

Gets the bounds of the display.

So, in the first instance you're working with actual space, while in the second visual space.

Ambala answered 26/4, 2011 at 23:41 Comment(0)
G
4

WorkingArea excludes Taskbar (and a few other thinds. see msdn). Bounds includes everything.

WorkingArea is an instance of Rectangle. Rectangle.Left gives the x coordinate. Rectangle.Right gives x coordinate + width.

Adding Left and Right doesn't make too much sense to me.

Garofalo answered 26/4, 2011 at 23:43 Comment(1)
Perhaps an example helps.. #2866379Rule

© 2022 - 2024 — McMap. All rights reserved.