Articles in this section
Category / Section

How to customize the appearance of WinForms MetroForm?

4 mins read

Customize the appearance of MetroForm

Appearance of the WinForms Metro Form 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#: https://www.syncfusion.com/downloads/support/directtrac/136015/MetroForm_Customization1965122579.zip

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

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

Conclusion

I hope you enjoyed learning about how to customize the appearance of WinForms Metro Form.

You can refer to our WinForms Metro Form’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms Metro Form documentation to understand how to present and manipulate data. 

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms Metro Form and other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied