Input for ASP.NET WebForms
Changing the Theme
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.

  1. Click the C1InputMask smart tag to open the C1InputMask Tasks menu.
  2. Click drop-down arrow next to Theme.
  3. Select one of the built-in themes listed. The theme is applied to the C1InputMask control.

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";