Pregunta

Some people that use my program have a like zoomed in form. Has this anything todo with the .NET version they have or what's the problem. They don't have the same screen resolution.

enter image description here

¿Fue útil?

Solución

This definitely seems like a result of DPI awareness (available since Windows Vista).

The right thing to do is to make your app "fluid" and properly format itself for bigger content.

The easy way out is to disable DPI awareness. Your app will still be bigger, but it will be scaled as a whole instead of having every independent component scale by itself.

You can do so by adding the following in your app.manifest file:

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
 ...
  <asmv3:application>
    <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
      <dpiAware>false</dpiAware>
    </asmv3:windowsSettings>
  </asmv3:application>
 ...
</assembly>

Otros consejos

Have the users change their browsers zoom to 100% It may be >100% and thus may be the cause of the problem.

The version of .NET should make no difference. The version of windows probably does, and also things like settings for high DPI screens, as blogged by Scott Hanselman

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top