Preventing Automatic Resizing of Controls in Telerik WinForms Application

1 Answer 16 Views
Forum suggestions
Sachin
Top achievements
Rank 1
Sachin asked on 21 Mar 2024, 04:39 AM

Dear Telerik Community,

I hope this message finds you well. I am reaching out to seek assistance with an issue I am encountering in my Telerik WinForms application.

Problem Description: I have designed a Windows Form using Telerik controls, which includes a RadForm containing a RadGroupBox with various Telerik controls such as RadTextBoxes, RadDropDownList, and RadButton. However, when I run the application, I notice that the dimensions of the controls are automatically increasing, leading to inconsistent layout and undesired vertical spacing between controls. Snapshot for reference attached..

Steps Taken:

  1. Added RadForm to the project.
  2. Included a RadGroupBox within the RadForm.
  3. Added RadTextBoxes, RadDropDownList, and RadButton to the RadGroupBox.

Expected Solution: I am seeking guidance on the settings or configurations that need to be implemented to ensure that the layout of the form remains consistent and does not automatically resize the controls.

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 21 Mar 2024, 11:03 AM

Hello Sachin,

I appreciate the provided details.

I am assuming that the form is shown on a monitor with HDPI. If I am correct you will need to make the application DPI aware. You can check the DPI Support help article to get familiar with this and check the How to Enable HDPI Support in Your Application section.

There are some tips and tricks that you should have in mind while building the UI for an application to achieve as good a layout as possible when running the project on monitors with higher than 100% DPI scaling. Please, check the HDPI Tips and Tricks KB article for more information. 

In your case, you will need to arrange the controls in the RadGroupBox in a TableLayoutPanel. This way each control will be placed in a cell thus allowing a smooth scaling. 

I hope that this information is helpful.

Regards,
Dinko | Tech Support Engineer
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
Forum suggestions
Asked by
Sachin
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or