Usercontrol

1 Answer 178 Views
TextBox
Moe
Top achievements
Rank 1
Iron
Iron
Veteran
Moe asked on 31 May 2022, 08:01 AM

Hi Support,

 

Now I added new usercontrol but all of item font too small. And not the same like the existing item. Please see below pic. Blue circle is new add items but why font size is small?

 

 

 

Thanks,

Moeu

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Jun 2022, 08:07 AM

Hello, Moe,

According to the provided screenshot, I suppose that you are running your project on a monitor with higher than 100% DPI scaling. Please correct me if I am wrong. However, I am not familiar with the exact setup that you have. So it wouldn't be easy to determine what causes the undesired behavior. 

If you declare your application as DPI aware, all RadControls will scale their UI elements in accordance to the current DPI settings automatically. To do that, you have to add an app.manifest file and/or an app.config file with several lines of code: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/dpi-support#how-to-enable-hdpi-support-in-your-application 

In order to produce as good layout as possible when running your application on monitors with different DPI scaling, it is important to have some thoughts in mind before you start designing the application: HDPI Tips and Tricks.

With the R2 2022 we have added some improvements to how our controls are scaled in their parent Forms/RadForms. The introduced improvements are listed below:

- RadControl is dynamically scaled now when it is added runtime.
- RadControl is scaled correctly in a System.Windows.Forms.Form.
- RadControl is scaled correctly in an UserControl.
- Scaling works in all .NET versions and DPI Awareness modes combinations except in .Net4 Framework. In this version, the scaling will not work in Microsoft Form.
- Fixed various DPI-related scaling issues.

These new functionalities are controlled by the static RadControl.EnableRadAutoScale property. In  case you want to disable these improvements, you can set it false.

If you are still experiencing any undesired layout, it would be greatly appreciated if you can submit a support ticket from your Telerik account and provide a sample runnable project demonstrating the problem you are facing. Thus, we would be able to investigate the precise case and provide further assistance. Thank you in advance.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TextBox
Asked by
Moe
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or