This topic has not yet been rated - Rate this topic

ExceptionMessageBox.SetButtonText Method

Sets the text for custom text buttons.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method SetButtonText(String) Sets the text for the custom text button when only one button is displayed in the exception message box.
Public method SetButtonText(String, String) Sets the text for the custom text buttons when only two buttons are displayed in the exception message box.
Public method SetButtonText(String, String, String) Sets the text for the custom text buttons when only three buttons are displayed in the exception message box.
Public method SetButtonText(String, String, String, String) Sets the text for the custom text buttons when only four buttons are displayed in the exception message box.
Public method SetButtonText(String, String, String, String, String) Sets the text for the custom text buttons when only five buttons are displayed in the exception message box.
Top

Custom text buttons are used when Buttons is set to Custom.

The number of button text strings provided determines the number of custom text buttons displayed. The buttons are displayed in the order in which the strings are specified.

After the message box has been dismissed, use CustomDialogResult to determine which button was clicked.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ