I have a windows form program I have been maintaining for a number of years on a Windows 7 / VS2017 setup.
I recently migrated to Windows 10 and VS2019.
When I compile the program everything looked fine. But now when I make a change to any form, the form looks correct in the designer but is completley chnaged when I run the program. There is extra padding between all the controls.
If I simply add one control to a form, the designer.cs file has significant changes to it.
- Every control location location changes
- Every control size changes
- Every control has a new padding property initializer added
However, it still looks exactly the same in the designer.
Does anyone know why this is happening and how to prevent it.
Here is a picture of the differences