We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:





95578 Jul 19,2010 12:34 PM Jul 21,2010 12:45 AM Windows Forms 3
Tags: HTMLUIControl
Dmitry Sergey
Asked On July 19, 2010 12:34 PM

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...

Ramya D [Syncfusion]
Replied On July 20, 2010 07:06 AM

Hi Dmitry,

Thanks for your interest in Syncfusion products.

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

public Form1()
this.htmluiControl1.LoadFinished += new System.EventHandler(this.htmluiControl1_LoadFinished);

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.


Refer the sample from the following link.


Please let me know if you have any queries.

Ramya D.

Dmitry Sergey
Replied On July 20, 2010 07:30 AM

It works. Thanks a lot Ramya D.

Lokanath E [Syncfusion]
Replied On July 21, 2010 12:45 AM

Hi Dmitry,

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



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.