2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
Customize the appearance of MetroFormAppearance 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 Reference link: https://help.syncfusion.com/windowsforms/metro-form/appearance |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.