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:

Created:

Updated:

Platform:

Replies:

95578 Jul 19,2010 12:34 PM Jul 21,2010 12:45 AM Windows Forms 3
loading
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()
{
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.

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.

Regards,
Lokanath.E

CONFIRMATION

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.

;