Size of form in designer not equal to size when run

  • Thread starter Thread starter Devon Sandberg
  • Start date Start date
D

Devon Sandberg

Guest
Hi, I've been using Visual Studio Community 2015 for a while with no problem. However, after switching to a new computer with higher resolution (3840x2160) a strange problem has occurred with my Visual C# Windows Forms Applications.

After migrating a solution to my new machine, everything built and ran fine. But when I resized a form in the designer, suddenly the size did not match after running. The sizes of the buttons, text boxes, and other components were fine, but the size of the whole window was not. Changing resolution to 1280x720 had no effect. The numbers in Form.Designer.cs do update appropriately.

I reproduced this with a new project, so I'm pretty sure none of the code from my old solution is involved here. The video is here:
View: https://www.youtube.com/watch?v=2DIXGfymrqw&feature=youtu.be
(I can't submit a link until my account is verified, but it doesn't tell me how to verify it, hmm...) Has anyone encountered this before? What can I do to fix it? Thanks.

Continue reading...
 
Back
Top