0

appreciate your help.

So I have an image (293 X 117 px) being placed in a PictureBox inside a Form. The layouts of control is perfect in the From; however, when I run the application the form is displayed but it seems the image is resized!! I have the the SizeMode set to Normal

Unis
  • 365
  • 1
  • 4
  • 13
  • Start from here: [How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?](https://stackoverflow.com/a/13228495/7444103) – Jimi May 29 '22 at 13:13
  • @Jimi Woow the thread was posted 9 years ago:o) do you think it is still relevant? – Unis May 29 '22 at 13:34
  • Yes and no. It depends on what .Net version you're targeting. Since your app is clearly not DpiAware (from the images you have now removed), it appears you're targeting .Net Framework, not .Net 5+ (which handles this in a different way), it can be relevant. But also read here: [High DPI support in Windows Forms](https://learn.microsoft.com/en-us/dotnet/desktop/winforms/high-dpi-support-in-windows-forms) -- If you decide to target .Net 5+, prefer `PerMonitorV2` as DpiAwareness mode. – Jimi May 29 '22 at 13:57
  • @Jimi Thank you for the valuable information and for pointing out the articles. – Unis May 31 '22 at 03:55

1 Answers1

0

This worked

Disabling DPI-awareness to fix HDPI / scaling issues with Windows Forms Designer in Visual Studio:

https://learn.microsoft.com/en-us/visualstudio/designers/disable-dpi-awareness?view=vs-2022

Unis
  • 365
  • 1
  • 4
  • 13