# Using default themes

All themes that come with Telerik UI for WinForms since version R2 2008 are available as standalone components, apart from the control's assemblies. This improvement has been added in order to simplify the way themes are added to the application and to improve the application’s loading time.

## Related Video

[Applying themes to RadControls for WinForms at the control and form level](http://tv.telerik.com/watch/winforms/themes/radcontrols-winforms-theme) introduces theme selection for individual controls and forms.

![Preview of the video about applying themes to WinForms controls and forms](https://www.telerik.com/products/winforms/documentation/assets/4f335b21437b77aba1355cfef177828d/themes-using-default-themes002.png)

For written instructions instead of the video, follow [Apply a theme to a control](https://www.telerik.com/products/winforms/documentation/styling-and-appearance/using-default-themes#apply-a-theme-to-a-control) and [Apply a theme to all controls in the current form](https://www.telerik.com/products/winforms/documentation/styling-and-appearance/using-default-themes#applying-theme-to-all-controls-in-the-current-form) below.

## Apply a theme to a control

If you have installed the suite from the provided installation files, you will see the themes loaded in the Visual Studio (VS) toolbox. If you do not see them, [add the theme components to the Visual Studio toolbox](https://www.telerik.com/products/winforms/documentation/visual-studio-integration/adding-radcontrols-to-visual-studio-toolbox).

> caption Figure 1: The themes in the Visual Studio toolbox.

![Visual Studio toolbox listing theme components, including Office2019LightTheme and VisualStudio2022DarkTheme](https://www.telerik.com/products/winforms/documentation/assets/651e8a8052a1b7e58453e2f8a7ceb18a/themes-using-themes001.png)

> note Since R2 2020, the **ControlDefault** theme offers Scalable Vector Graphics (SVG) images as well as raster images. SVG images are displayed by default. See [Vector Images](https://www.telerik.com/products/winforms/documentation/telerik-presentation-framework/vector-images-support) to choose which image type to display.

> note Since R1 2021 Telerik UI for Winforms suite has introduced the brand new **Office2019Light** theme. Inspired by the latest Microsoft Office application, the **Office2019Light** theme is here to help delivering that fresh look and feel to your WinForms application. As of **R2 2021** there are Gray and Dark variations of the Office2019 theme.

> note Since R2 2023 Telerik UI for WinForms suite introduced **VisualStudio2022Dark** theme.

> note Since R1 2022 Telerik UI for WinForms suite introduced **VisualStudio2022** theme inspired by the last released version of Visual Studio.

1. Drag the desired theme component from the VS Toolbox to the form. This adds a reference to the corresponding theme assembly in the project and makes the theme available in the **ThemeName** drop-down of all Telerik controls on the form.
2. Select the theme from the control's **ThemeName** drop-down in the smart tag, or set **ThemeName** programmatically.

> caption Figure 2: Set the theme at design time using the SmartTag.

![Control smart tag with the ThemeName drop-down for selecting a theme at design time](https://www.telerik.com/products/winforms/documentation/assets/8c86203db65ef62a7538a878cb9d9427/themes-using-themes002.png)

## Setting a default theme for a whole application programmatically

Before using the following code snippets, add the desired theme's dynamic-link library (DLL) file to your project references.

### Setting a default theme for the entire application

Create the theme component and set **ThemeResolutionService.ApplicationThemeName** as shown below.

 

 

```C#
protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
    Office2007SilverTheme theme = new Office2007SilverTheme();
    ThemeResolutionService.ApplicationThemeName = "Office2007Silver";
}

```

```VB.NET
Protected Overrides Sub OnLoad(e As EventArgs)
    MyBase.OnLoad(e)
    Dim theme As New Office2007SilverTheme()
    ThemeResolutionService.ApplicationThemeName = "Office2007Silver"
End Sub

```



As of **R1 2021** the ThemeResolutionService.**ControlDefaultThemeName** forces an update at runtime. It is possible to define the control default theme name for the entire application. The property works similarly to the ThemeResolutionService.**ApplicationThemeName** but it has lower priority.

When setting a theme, the priority is as follows, starting with the lowest:

1. ThemeResolutionService.**ControlDefaultThemeName** - globally sets the default theme.
2. RadControl.**ThemeName** - locally sets the theme for a control.
3. ThemeResolutionService.**ApplicationThemeName** - globally sets the theme for the entire application and overrides all other settings.

## Applying theme to all controls in the current form.

At design time, apply the form's theme to its controls:

1. Set the form's **ThemeName** to the desired theme.
2. Right-click the form and choose **Apply current form's theme to controls**.

> caption Figure 3: Apply the current form theme to all controls.

![Form designer context menu with View Code, Lock Controls, Apply current form's theme to controls, and Properties commands](https://www.telerik.com/products/winforms/documentation/assets/61ce915c0234d8b647a7044e3f2068e0/themes-using-themes003.png)

## See Also

* [Touch Enabled Themes](https://www.telerik.com/products/winforms/documentation/styling-and-appearance/touch-themes)

* [Using a Default Theme for the Entire Application](https://www.telerik.com/products/winforms/documentation/styling-and-appearance/using-a-default-theme-for-the-entire-application)

* [Using custom themes](https://www.telerik.com/products/winforms/documentation/styling-and-appearance/using-custom-themes)

* [Visual Style Builder](https://www.telerik.com/products/winforms/documentation/styling-and-appearance/visual-style-builder)
