Task-Based Help > General C1Input Tasks > Changing the Theme |
You can format the Input for ASP.NET Web Forms controls with one of six built-in themes. We will use C1InputMask in the following examples.
Changing the Theme Using the Smart Tag
You can change the style of the Input for ASP.NET Web Forms controls at design time using the control's Tasks menu.
Changing the Theme in Code
To change the theme of an Input for ASP.NET Web Forms control programmatically, use the following code. In this example, midnight is used, but you can replace it with any of the built-in themes.
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1InputMask1.Theme = "midnight" |
To write code in C#
C# |
Copy Code
|
---|---|
C1InputMask1.Theme = "midnight"; |