KB Article K18013
Visible to All Users

What is the best way to set the same Look-and-Feel style of the entire application with DXperience for Windows Forms?

Description:
How to set the entire application skin to "Money Twins"?

Answer:
The are two solutions to this task:

  1. Drop the DefaultLookAndFeel component onto the main form and set its Skin property to the required value. Please note that it is not necessary to drop this component on every form but just only onto the main one.

  2. Another approach is to specify the skin programmatically:

C#
[STAThread] static void Main() { DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = "Money Twins"; // <<< NEW LINE Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); } Public Class MainForm Sub New() DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = "Money Twins" ' <<< NEW LINE ' This call is required by the Windows Form Designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. End Sub ...

By using the above code you'll be able to set the desired look-and-feel at runtime. As for design time, please use the DXDesignKeys tool from the DXperience installation.
See Also:
Look And Feel Mechanism
A2912
Where can I download your bonus and office skins?
How to load Office and Bonus skins' libraries at runtime

Comments (3)

    Thanks!
    If feel so stupid, the line in the Program.cs is already there. Sorry to take up your time. Sometimes I just look in the wrong places.

    MS MS
    Michael Schreiber 11 years ago

      The link to Look And Feel Mechanism does not work.

      Alisher (DevExpress Support) 11 years ago

        Hi,
        I have corrected the link to Look And Feel Mechanism. Please check it again.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.