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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





95578 Jul 19,2010 04:34 PM UTC Jul 21,2010 04:45 AM UTC WinForms 3
Tags: HTMLUIControl
Dmitry Sergey
Asked On July 19, 2010 04:34 PM UTC

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 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()
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 11:30 AM UTC

It works. Thanks a lot Ramya D.

Lokanath E [Syncfusion]
Replied On 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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon