I have a rather simple utility app originally written in VS 2010. When I updated my development machine to Windows 10, the app ran without modification, but the two buttons on one dialog moved up 23 pixels to where they get partially hidden by a label. Annoying, but tolerable for a while.
I decided today it was time to remedy that misplacement, so I moved the project to VS 2015 in Windows 10 (with still the same .NET version specified). When I open the form designer for that dialog, sure enough, the buttons are 23 pixels high. So, I moved them back to the bottom-right-anchored position they belong in and saved the form. I then compared the current and prior versions of the form's files and the ONLY line that changed is in the designer.cs file:
this.ClientSize = new System.Drawing.Size(284,93);
In VS 2010 under Windows 7, the 93 was 94. If I change the 93 back to 94, the buttons jump back to their incorrect locations and VS changes the 94 back to 93. The MSDN documentation on ClientSize sounds like it should be treated as readonly and makes no mention of what effect changing it might have.
Toying around with the designer.cs file (just for grins), I found that if I correct the locations in that file, VS changes them back to the incorrect locations. The only way to put the buttons where they belong is to move them in the graphic Designer, and it then puts them in the same locations I couldn't edit them to. Go figure.
It's obvious what to do for my Windows 10 version, but my analytical brain doesn't like not knowing why this happens. It's pretty clear that it is a difference between Windows 7 and 10, but...
Why only this one dialog?
Why only those two buttons?
What does ClientSize have to do with it anyway?
What I have tried:
Searched MSDN under Form.ClientSize.