Screen Scaling reset to 100%

Hello,

my sreen is set to 150% Scaling.

I have a simple Visual Studio Forms Project .NET Framework 4.7.2 with a Button on the form. The Button simply executes GemBox examples. The examples all work, but after executing the examples the screen scaling is set 100%. This issue is for all Spreadsheet and Document examples I tried.

Is there a solution for this issue or is it a bug?

Thanks for your answer

Hi,

Please try the following:

  1. Add a reference to “WindowsBase”.
  2. Inside the “AssemblyInfo.cs” file, add the following line of code:
    [assembly: System.Windows.Media.DisableDpiAwareness]
    

Does this solve your issue?

Regards,
Mario

Hi Mario,

your solution works!!!

Thank you for your answer