I'm using Windows Forms in the .NET Framework. On Windows 7 and previous versions of Windows if I set Form.Left = 0 and Form.Top = 0 then the form is aligned nicely with the left and top edges of my display. But if I do this in Windows 10 the form is placed about 7 pixels in from the left edge while still being aligned with the top edge. If I query From.Top when it is in the state then I can see that it is still set to 0. Form.Padding.Left is also 0.
I assume that the 7 pixel offset from the eleft edge might vary with DPI settings and so on so I don't want to just set Form.Left = -7 to make it align with the left edge.
This seems odd, there must be a simple explanation.