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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the appearance of the WinForms MessageBoxAdv?

Platform: WinForms |
Control: MessageBoxAdv

Appearance of MessageBoxAdv

The appearance of the MessageBoxAdv can be customized by using the following properties of the MetroStyleColorTable.

  1. AbortButtonBackColor
  2. CancelButtonBackColor
  3. IgnoreButtonBackColor
  4. NoButtonBackColor
  5. OKButtonBackColor
  6. RetryButtonBackColor
  7. YesButtonBackColor
  8. CaptionBarColor
  9. CaptionForeColor
  10. ForeColor
  11. BackColor
  12. BorderColor


The following code example demonstrates the same.


//MetroColor table for MessageBoxAdv
MetroStyleColorTable metroColorTable = new MetroStyleColorTable();
//Sets the NoButton backColor
metroColorTable.NoButtonBackColor = Color.Red;
//Sets the YesButton backColor
metroColorTable.YesButtonBackColor = Color.SkyBlue;
//Sets the OK button backcolor
metroColorTable.OKButtonBackColor = Color.Green;
//Applies the MetroStyleColorTable to MessageBoxAdv
MessageBoxAdv.MetroColorTable = metroColorTable;
//Sets the MessageBoxStyle as Metro
MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Metro;


'MetroColor table for MessageBoxAdv
Dim metroColorTable As New MetroStyleColorTable()
'Sets the NoButton backColor
metroColorTable.NoButtonBackColor = Color.Red
'Sets the YesButton backColor
metroColorTable.YesButtonBackColor = Color.SkyBlue
'Sets the OK button backcolor
metroColorTable.OKButtonBackColor = Color.Green
'Applies the MetroStyleColorTable to MessageBoxAdv
MessageBoxAdv.MetroColorTable = metroColorTable
'Sets the MessageBoxStyle as Metro
MessageBoxAdv.MessageBoxStyle = MessageBoxAdv.Style.Metro



Metro style appearance of the MessageBoxAdv

Figure 1: Metro Style appearance of the MessageBoxAdv


C#: http://www.syncfusion.com/downloads/support/directtrac/135929/MessageBoxAdvMetroColorTable-646548035.zip

VB: http://www.syncfusion.com/downloads/support/directtrac/137069/MessageBoxAdvMetroColorTable_VB-382674015.zip

Reference link: https://help.syncfusion.com/windowsforms/messagebox/styles-settings

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
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