High DPI Monitor

3 posts, 0 answers
  1. pierre-jean
    pierre-jean avatar
    147 posts
    Member since:
    Apr 2011

    Posted 23 Jul 2019 Link to this post

    Hello

    I know that this question has been discussed many times, I have tried various solutions but I have a strange behavior that I can not correct.

    I use a 4K 3840x2160 monitor, Visual Studio 2015, .net 4..7

    I have a fairly large WinForms project with many forms and user controls.

    In the development environment some of the forms or user controls are displayed in "readable" font sizes and other forms or user controls are displayed in very small fonts.

    I set the autoscale property of the form to DPI and I set it to inherit to the use controls - I have tried to change this propertx to other values without any visible change.

    I trust that the "final" application used on normal resolution displays (1920x1080 or smaller) will work properly but in teh develpment environment it's very uncomfortable to work with very small fonts.

    Is there something I can do to correct this abnormal behavior ?

    Thanks in advance

    Pierre-Jean

     

  2. Dimitar
    Admin
    Dimitar avatar
    2949 posts

    Posted 24 Jul 2019 Link to this post

    Hello Pierre-Jean,

    Developing on HDPI is not recommended. In Visual Studio 2019 there is a warning message when a form is opened on HDPI. The following article contains more information about this (and a possible solution): Disable DPI-awareness in Visual Studio.

    In order everything to work correctly in other environments please make sure to correct the AutoScaleDimensions property after you are done with the layout of your forms: HDPI Tips and Tricks.

    I hope this helps. Should you have any other questions, do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. pierre-jean
    pierre-jean avatar
    147 posts
    Member since:
    Apr 2011

    Posted 24 Jul 2019 in reply to Dimitar Link to this post

    Hello Dimitar

    Thanks a lot four your message

    I will follow your recommendations

    Best Regards

    Pierre-Jean

Back to Top