)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the appearance of WinForms MetroForm?

Platform: WinForms |
Control: MetroForm |
Published Date: May 12, 2015 |
Last Revised Date: January 6, 2020

Customize the appearance of MetroForm

Appearance of the MetroForm can be customized by using the following properties.

1)BorderColor

2)CaptionBarColor

3)CaptionButtonColor

4)CaptionButtonHoverColor

5)CaptionForeColor

6)BackColor

7)CaptionFont

8)BorderThickness

9)CaptionBarHeight

10)CaptionAlign

11)CaptionVerticalAlignment

12)DropShadow

13)MetroColor

The following code example is to demonstrate the same.

C#

//To set the BorderColor of the MetroForm.
this.BorderColor = System.Drawing.SystemColors.MenuHighlight;
//To set the CaptionBarColor of the MetroForm.
this.CaptionBarColor = System.Drawing.SystemColors.MenuHighlight;
//To set the CaptionButtonColor of the MetroForm.
this.CaptionButtonColor = System.Drawing.Color.White;
//To set the CaptionButtonHoverColor of the MetroForm.
this.CaptionButtonHoverColor = System.Drawing.Color.Yellow;
//To set the CaptionForeColor of the MetroForm.
this.CaptionForeColor = System.Drawing.Color.White;
//To set the BackColor of the MetroForm.
this.BackColor = System.Drawing.Color.White;
//To set the MetroColor.
this.MetroColor = System.Drawing.SystemColors.MenuHighlight;
//To set the caption font of the MetroForm.
this.CaptionFont = new Font("Segoe UI", 12);
//To set the BorderThickness of the MetroForm.
this.BorderThickness = 3;
//To set the CaptionBarHeight of the MetroForm.
this.CaptionBarHeight = 30;
//To set the CaptionAllignment of the MetroForm.
this.CaptionAlign = System.Windows.Forms.HorizontalAlignment.Left;
//To set the vertical alignment of the MetroForm.
this.CaptionVerticalAlignment = VerticalAlignment.Top;
//To set the shadow effect of the MetroForm.
this.DropShadow = true;

VB

'To set the BorderColor of the MetroForm.
Me.BorderColor = System.Drawing.SystemColors.MenuHighlight
'To set the CaptionBarColor of the MetroForm.
Me.CaptionBarColor = System.Drawing.SystemColors.MenuHighlight
'To set the CaptionButtonColor of the MetroForm.
Me.CaptionButtonColor = System.Drawing.Color.White
'To set the CaptionButtonHoverColor of the MetroForm.
Me.CaptionButtonHoverColor = System.Drawing.Color.Yellow
'To set the CaptionForeColor of the MetroForm.
Me.CaptionForeColor = System.Drawing.Color.White
'To set the BackColor of the MetroForm.
Me.BackColor = System.Drawing.Color.White
'To set the MetroColor of the MetroForm.
Me.MetroColor = System.Drawing.SystemColors.MenuHighlight
'To set the BorderThickness of the MetroForm.
Me.BorderThickness = 3   
'To set the CaptionBarHeight of the MetroForm.
Me.CaptionBarHeight = 30  
'To set the caption font of the MetroForm.
Me.CaptionFont = New Font("Segoe UI", 12)
'To set the CaptionAllignment of the MetroForm.
Me.CaptionAlign = System.Windows.Forms.HorizontalAlignment.Left
'To set the vertical alignment of the MetroForm.
Me.CaptionVerticalAlignment = VerticalAlignment.Top
'To set the shadow effect of the MetroForm.
Me.DropShadow = True            

Samples:

C#: http://www.syncfusion.com/downloads/support/directtrac/136015/MetroForm_Customization1965122579.zip

VB: http://www.syncfusion.com/downloads/support/directtrac/136015/MetroForm_Customization_VB-985409241.zip

Reference link: https://help.syncfusion.com/windowsforms/metro-form/appearance

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon