New to Telerik UI for WinForms? Download free 30-day trial

Themes

RadForm comes with a number of themes which can be easily applied by setting the ThemeName property. This topic demonstrates how to apply predefined themes.

Applying Themes to RadForm

The themes allow you to modify the look-and-feel of a RadForm instance by simply setting the ThemeName property.

This section shows how to apply the Office2007Black theme to a RadForm in the Visual Studio designer:

1. Add a RadForm item in your project or change the base class of an existing standard Windows Form to Telerik.WinControls.UI.RadForm.

WinForms RadForm Creating

Changing WinForms form to Telerik RadForm

partial class Form1 : Telerik.WinControls.UI.RadForm

Partial Class Form1
    Inherits Telerik.WinControls.UI.RadForm

2. Open the Design View of the Form and open the Visual Studio Toolbox.

3. In the Visual Studio Toolbox find the Office2007BlackTheme component.

WinForms RadForm forms-and-dialogs-form-themes 002

4. Drag and drop the component onto your RadForm.

5. Open the Properties Window for the form and find the ThemeName property.

6. In order to apply the Office2007Black theme to RadForm, choose the 'Office2007Black' option from the ThemeName drop-down:

WinForms RadForm ThemeName DropDown

You do not need to add multiple Theme Components on each form which you would like to customize. By adding one Theme Component on a form, the theme is loaded in the memory and it becomes available for all RadControls and RadForms in your project.

See Also

In this article