This is a migrated thread and some comments may be shown as answers.

High DPI Monitor

2 Answers 389 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
pierre-jean
Top achievements
Rank 1
Veteran
Iron
pierre-jean asked on 23 Jul 2019, 01:46 PM

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 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 24 Jul 2019, 09:01 AM
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.
0
pierre-jean
Top achievements
Rank 1
Veteran
Iron
answered on 24 Jul 2019, 09:46 AM

Hello Dimitar

Thanks a lot four your message

I will follow your recommendations

Best Regards

Pierre-Jean

Tags
General Discussions
Asked by
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Answers by
Dimitar
Telerik team
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Share this question
or