Set PerMonitorV2 DpiAwareness without manifest file?

1.5k views Asked by At

My Winforms application appears very blurry when executed without a manifest file. With it and the added code

<System.Windows.Forms.ApplicationConfigurationSection>
    <add key="DpiAwareness" value="PerMonitorV2" />
</System.Windows.Forms.ApplicationConfigurationSection>

the blurriness does disappear, but it requires the user to have an additional .config file to make the app look crisp when running it. I have tried setting the AutoScaleMode variable of my form to Font and Dpi, neither made a difference. I have also found online the SetProcessDpiAwarenessContext function, but I'm unsure if this is what I'm looking for and I do not know how to implement it into my code.

Is it possible to remove the blurriness from my app without a manifest file at all?

0

There are 0 answers