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
0
Accepted
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
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
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:
I hope this helps. Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
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.
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.