TextBox Font Style, Font Color in ASP.Net C#

TextBox Font Style in C#

This asp.net textbox tutorial we will going to learn how to change textbox font style programmatically in asp.net using c#.

The below list shows style attributes of TextBox:

Style attributes Description
ForeColor It is used for set Font Color of control.
Font.Size It is used for set Font Size.
Font.Bold It is used to display a Bold text.
Font.Underline It is used to define Underline text.
Font.Italic It is used to define Italic text.
Font.Strikeout It is used to define Strikeout text.
Font.Overline
Overline text.

TextBox Font Color and Font Style C# Example

This example shows how to change programmatically TextBox font color, font size and other font style in asp.net using c#.

Font Color and Font Style in ASP.Net C# Example
Font Color and Font Style in ASP.Net C# Example

C# code for above textbox font color and style example.

In our next asp.net textbox post we will learn about border style and attributes with an example.

Leave a Reply

Your email address will not be published. Required fields are marked *