I cannot to set bigger size of font for INPUT tag using HTML UI

I want to display INPUT element in bigger size. I can do it by 'height=100' inside INPUT but how I can do the same with the font? 'Height' doesn't help.

- font is unchangable...

3 Replies

RD Ramya D Syncfusion Team July 20, 2010 11:06 AM UTC

Hi Dmitry,

Thanks for your interest in Syncfusion products.

You can change the font size by using HTMLUI.BaseElement as shown below.

public Form1()
{
InitializeComponent();
this.htmluiControl1.LoadFinished += new System.EventHandler(this.htmluiControl1_LoadFinished);
this.htmluiControl1.LoadHTML(@"..\..\..\fonts.html");
}

private System.Windows.Forms.TextBox textbox;

private void htmluiControl1_LoadFinished(object sender, EventArgs e)
{
Hashtable elements = this.htmluiControl1.Document.GetElementsByUserIdHash();
BaseElement textboxelm = (BaseElement)elements["textbox"];
textbox = (TextBox)this.htmluiControl1.Document.GetControlByElement(textboxelm);
textbox.Font= new Font("Arial",30);
}


Refer the documentation from below link.



http://help.syncfusion.com/ug_83/User%20Interface/Windows%20Forms/HTML%20UI/default.htm?turl=Documents%2Fhowtogetanobjectforthecontrolpresentinanhtmlelementinthehtmluicontrol.htm


Refer the sample from the following link.


http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=TextSize22144078.zip



Please let me know if you have any queries.

Regards,
Ramya D.


DS Dmitry Sergey July 20, 2010 11:30 AM UTC

It works. Thanks a lot Ramya D.


LE Lokanath E Syncfusion Team July 21, 2010 04:45 AM UTC

Hi Dmitry,

We are happy to here your problem is solved. Thanks for your interest in Syncfusion Products.

Regards,
Lokanath.E

Loader.
Up arrow icon