0

My form in designer have size 1946, 876, but when runtime, size of form is very small, equal 2/3 of designer. So it can't display all the controls in the panel. How can I display the correct size of the design or drag the form?

in design

enter image description here

enter image description here

when runtime enter image description here

enter image description here

Peter Csala
  • 17,736
  • 16
  • 35
  • 75
  • Perhaps the size of the form is changed at run-time? – Sinatr May 26 '21 at 08:25
  • [AutoscaleMode.Font](https://stackoverflow.com/q/50201741/1997232)? – Sinatr May 26 '21 at 08:27
  • Your app is not DpiAware. Set `AutoScaleMode = Dpi`, follow the link in the first comment of the question Sinatr posted, apply that. Make sure you design at 100% scale. – Jimi May 26 '21 at 09:26
  • This looks like either a dpi or autoscale issue. it might help to make sure that no autoscale is enabled in form properties, and either make the app is dpi-aware or force windows do not apply dpi scaling to the application. – mcy Jul 29 '21 at 11:48

0 Answers0