[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Collapse]Forms and User Controls
    XtraForm
    Ribbon Form
    Tabbed Form
    Fluent Design Form
    XtraUserControl
    Form Assistant
    Taskbar Assistant
   [Expand]Splash Screen Manager
   [Expand]Adorner UI Manager
   [Collapse]Examples
     How to: Add New XtraForm, RibbonForm and XtraUserControl to Your Project
     How to: Convert Form and UserControl Types
     How to: Perform Actions On Application Startup
  [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]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [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]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Convert Form and UserControl Types

Expanded Automatic Form Conversion

You can use the FormAssistant component to convert between form types: Form, XtraForm, RibbonForm, TabForm and FluentDesignForm. This non-visual component is displayed within the Visual Studio tray. Click the component's smart tag to access form conversion commands.

The UserControl cannot be converted automatically to an XtraUserControl with the FormAssistant component, but it can be converted manually - as described in the following section.

Expanded Manual Form and UserControl Conversion

To manually convert your form or user control type, replace the form's (or user control's) ancestor.

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, TabForm and FluentDesignForm, add the DevExpress.XtraBars library as well.

This example shows how to convert a standard form to an XtraForm.

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

Expanded See Also

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