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.

Underline textbox content

Thread ID:

Created:

Updated:

Platform:

Replies:

49295 Sep 15,2006 03:18 AM Sep 18,2006 12:54 PM Windows Forms 4
loading
Tags: Tools
Administrator [Syncfusion]
Asked On September 15, 2006 03:18 AM

hi,

how to underline the textbox content?

Please help!

Administrator [Syncfusion]
Replied On September 15, 2006 08:07 AM

hi!

Is it my problem not clear enough?

i want to do it dynamically.

Please advice me!

Purusothaman R [Syncfusion]
Replied On September 15, 2006 12:52 PM

Hi Lim,

The Font of the Textbox can be changed dynamically by using the "Font" property and by setting the FontStyle to Underline. Here is the code snippet for the same.

textBoxExt1.Font=new Font(textBoxExt1.Font,FontStyle.Underline);

Thanks,
Purusothaman.R

Administrator [Syncfusion]
Replied On September 16, 2006 03:11 AM

Thank you!

Purusothaman R [Syncfusion]
Replied On September 18, 2006 12:54 PM

Hi Lim,

Thanks for the Update.

Best Regards,
Purusothaman.R

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.

;