Log In
[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Collapse]Forms and User Controls
    Ribbon Form
    Tabbed Form
    Form Assistant
    Taskbar Assistant
   [Expand]Splash Screen Manager
   [Expand]Adorner UI Manager
     How to: Add New XtraForm, RibbonForm and XtraUserControl to Your Project
     How to: Convert Form to XtraForm (RibbonForm, TabForm), and UserControl to XtraUserControl
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Convert Form to XtraForm (RibbonForm, TabForm), and UserControl to XtraUserControl

This topic shows how to convert an existing Form or UserControl to a skinnable XtraForm, RibbonForm, TabForm or XtraUserControl.

Expanded Automatic Form Conversion

You can use the FormAssistant component to convert an existing Form to XtraForm, RibbonForm or TabForm. This component is non-visual, and is displayed within the Visual Studio tray. Click the component's smart tag to invoke the FormAssistant Tasks pane, which contains form conversion commands.

Click a corresponding command to convert the form.

The UserControl cannot be converted using the FormAssistant component. However, it can be converted manually, as described in the following section.

Expanded Manual Form and UserControl Conversion

To manually convert a Form or UserControl to XtraForm/RibbonForm/TabForm/XtraUserControl, modify the code that declares your Form/UserControl by replacing the ancestor of the Form/UserControl with the corresponding DevExpress class.

Before proceeding, ensure that the DevExpress.Data, DevExpress.Utils and DevExpress.XtraEditors libraries have been added to the References section of your project. To use the RibbonForm and TabForm, add the DevExpress.XtraBars library as well.

This example shows how to convert a standard form to an XtraForm. Conversion to RibbonForm and XtraUserControl is performed in the same manner.

  1. Open the file that contains the form's declaration. In C#, the form's declaration can be found in the Form1.cs file. In Visual Basic, the form is found in the Form1.Designer.vb file. The form is declared as follows.
  2. Rewrite this declaration as follows.
  3. Rebuild the project.

Expanded See Also

Is this topic helpful?​​​​​​​