)
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

What are all the Buttons combination available in WinForms MessageBoxAdv?

Platform: WinForms |
Control: MessageBoxAdv |
Published Date: February 13, 2017 |
Last Revised Date: January 6, 2020

Button parameters

The below listed Buttons combination are available in MessageBoxAdv Control.

1)OK.

2)OK Cancel.

3)Abort Retry Ignore.

4)Yes No Cancel.

5)Yes No.

6)Retry Cancel.

 

1) OK

This option will display OK Button combination in MessageBoxAdv control. The following Code sample demonstrates the same.

C#

//OK
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.OK);

VB

'OK
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.OK)
 

 

Screenshot

Show Ok option button

Figure 1: OK option.

 

2) OK Cancel

This option will display OK and Cancel Buttons combination in MessageBoxAdv control. The following Code sample demonstrates the same.

C#

//OK Cancel
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.OKCancel);

VB

'OK Cancel
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.OKCancel)

 

Screenshot

Show OK and Cancel option button

 Figure 2: OK and Cancel options.

 

3) Abort Retry Ignore

This option will display Abort, Retry and Ignore Buttons combination in MessageBoxAdv control. The following Code sample demonstrates the same.

C#

//Abort Retry Ignore
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.AbortRetryIgnore);

VB

'Abort Retry Ignore
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.AbortRetryIgnore)

 

Screenshot

Show Abort, Retry and Ignore options buttons

Figure 3: Abort, Retry and Ignore options.

 

4) Yes No Cancel

This option will display Yes, No and Cancel Buttons combination in MessageBoxAdv control. The following Code sample demonstrates the same.

C#

//Yes No Cancel
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.YesNoCancel);

VB

'Yes No Cancel
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.YesNoCancel)

 

Screenshot

Show Yes, No and Cancel options buttons

Figure 4: Yes, No and Cancel options.

 

5) Yes No

This option will display Yes and No Buttons combination in MessageBoxAdv control. The following Code sample demonstrates the same.

C#

//Yes No
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.YesNo);

VB

'Yes No 
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.YesNo)

 

Screenshot

Show Yes and No options buttons

Figure 5: Yes and No options.

 

6) Retry Cancel

This option will display Retry and Cancel Buttons combination in MessageBoxAdv control. The following Code sample demonstrates the same.

C#

//Retry Cancel
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.RetryCancel);

VB

'Retry Cancel
MessageBoxAdv.Show("Metro Theme Customization", "This is Syncfusion MessageBoxAdv Control", MessageBoxButtons.RetryCancel)

 

Screenshot

Show Retry and Cancel options buttons

Figure 6: Retry and Cancel options.

Samples:

C#: MessageBoxAdvButtonsSupport

VB: MessageBoxAdvButtonsSupport

Reference link: https://help.syncfusion.com/windowsforms/messagebox/button-parameters

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