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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize the BackColor and ForeColor of MessageBoxAdv Buttons?

MessageBoxAdv contains below listed buttons Combination.

  1. OK.
  2. OK Cancel.
  3. Yes No.
  4. Yes No Cancel.
  5. Abort Retry Ignore.
  6. Retry Cancel.

 

This Buttons BackColor and Fore Color can be customized using below Properties.

 

Properties

Usage

 

OKButtonBackColor

OKButtonForeColor

 

CancelButtonBackColor

CancelButtonForeColor

 

YesButtonBackColor

YesButtonForeColor

 

NoButtonBackColor

NoButtonForeColor

 

AbortButtonBackColor

AbortButtonForeColor

 

RetryButtonBackColor

RetryButtonForeColor

 

IgnoreButtonBackColor

IgnoreButtonForeColor

 

DetailsButtonBackColor

DetailsButtonForeColor

 

 

Used to set the Ok Button Background color

Used to set the Ok Button ForeColor

 

Used to set the Cancel Button Background color

Used to set the Cancel Button ForeColor

 

Used to set the Yes Button Background color

Used to set the Yes Button ForeColor

 

Used to set the No Button Background color

Used to set the No Button ForeColor

 

Used to set the Abort Button Background color

Used to set the Abort Button ForeColor

 

Used to set the Retry Button Background color

Used to set the Retry Button ForeColor

 

Used to set the Ignore Button Background color

Used to set the Ignore Button ForeColor

 

Used to set the Details Button Background color

Used to set the Details Button ForeColor

 

Code Example: [C#]

 

 

Code Example: [VB]

 

 

Screenshot

                 



Sample

 

C#:  MessageBoxAdvSample

 

VB:  MessageBoxAdvExample

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8364 01/31/2018 01/31/2018 Windows Forms MessageBoxAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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