EnableWindowsFormsHighDpiAutoResizing in Windows forms RRS feed

  • Question

    How to set the EnableWindowsFormsHighDpiAutoResizing = True in app.config. I have not modified this file before and I worry in case I did something wrong to it. Thanks


    Saturday, June 6, 2015 6:20 PM


  • This new setting is described in documentation: https://msdn.microsoft.com/en-us/library/ms171868%28v=vs.110%29.aspx. It has to be added to App.config file. If your project does not contain it yet, the go to PROJECT menu, then Add New Item and select “Application Configuration File”. Then add the setting inside the <configuration> element:

    <?xml version="1.0" encoding="utf-8" ?>



            <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />



    • Marked as answer by pmak Sunday, June 7, 2015 6:36 PM
    Sunday, June 7, 2015 6:56 AM