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

RadForm and its' Child Controls did not ReSize When Changing Font

4 Answers 222 Views
Form
This is a migrated thread and some comments may be shown as answers.
Zan
Top achievements
Rank 1
Zan asked on 09 Dec 2017, 11:28 AM

Hello Telerik Team,

I need to change Font of Form dynamically.

I'm facing a problem with RadForm.

Unlike the Microsoft's Form, Rad Form did not automatically resize the form and child control (I attached sample screen shot).

I can't understand why. Pls Explain.

 

 

4 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 11 Dec 2017, 12:39 PM
Hi Aung,

The standard controls are inheriting the font from the form. With our controls, the font is set in the theme explicitly for each control and you need to set it manually. 

I hope this will be useful. 

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Zan
Top achievements
Rank 1
answered on 12 Dec 2017, 03:06 AM
Thank Dimitar
0
John
Top achievements
Rank 1
answered on 15 Mar 2019, 02:35 PM
. . .  and you need to set it manually. <= How would you do that for every control on the form? and have them all resize accordingly like the standard Windows forms do.  I am using VS2017 Pro English.
0
Dimitar
Telerik team
answered on 18 Mar 2019, 10:29 AM
Hello John,

I have tested this again and it seems that the standard form is scaled when the font is set, and this affects not only the font of the controls but their size and location. if this is the functionality that you are looking for you can use the Scale method which will scale the entire form:
private void RadButton1_Click(object sender, EventArgs e)
{
    this.Scale(new SizeF(1.5f, 1.5f));
}

I hope this helps. Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Form
Asked by
Zan
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Zan
Top achievements
Rank 1
John
Top achievements
Rank 1
Share this question
or