ExceptionMessageBox.SetButtonText ExceptionMessageBox.SetButtonText ExceptionMessageBox.SetButtonText Method

Definition

Sets the text for custom text buttons.

Overloads

SetButtonText(String) SetButtonText(String) SetButtonText(String)

Sets the text for the custom text button when only one button is displayed in the exception message box.

SetButtonText(String, String) SetButtonText(String, String) SetButtonText(String, String)

Sets the text for the custom text buttons when only two buttons are displayed in the exception message box.

SetButtonText(String, String, String) SetButtonText(String, String, String) SetButtonText(String, String, String)

Sets the text for the custom text buttons when only three buttons are displayed in the exception message box.

SetButtonText(String, String, String, String) SetButtonText(String, String, String, String) SetButtonText(String, String, String, String)

Sets the text for the custom text buttons when only four buttons are displayed in the exception message box.

SetButtonText(String, String, String, String, String) SetButtonText(String, String, String, String, String) 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.

Remarks

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.

SetButtonText(String) SetButtonText(String) SetButtonText(String)

Sets the text for the custom text button when only one button is displayed in the exception message box.

public:
 void SetButtonText(System::String ^ button1Text);
public void SetButtonText (string button1Text);
Public Sub SetButtonText (button1Text As String)
Parameters
button1Text
String String String

Text for the first custom button.

SetButtonText(String, String) SetButtonText(String, String) SetButtonText(String, String)

Sets the text for the custom text buttons when only two buttons are displayed in the exception message box.

public:
 void SetButtonText(System::String ^ button1Text, System::String ^ button2Text);
public void SetButtonText (string button1Text, string button2Text);
Public Sub SetButtonText (button1Text As String, button2Text As String)
Parameters
button1Text
String String String

Text for the first custom button.

button2Text
String String String

Text for the second custom button.

SetButtonText(String, String, String) SetButtonText(String, String, String) SetButtonText(String, String, String)

Sets the text for the custom text buttons when only three buttons are displayed in the exception message box.

public:
 void SetButtonText(System::String ^ button1Text, System::String ^ button2Text, System::String ^ button3Text);
public void SetButtonText (string button1Text, string button2Text, string button3Text);
Public Sub SetButtonText (button1Text As String, button2Text As String, button3Text As String)
Parameters
button1Text
String String String

Text for the first custom button.

button2Text
String String String

Text for the second custom button.

button3Text
String String String

Text for the third custom button.

SetButtonText(String, String, String, String) SetButtonText(String, String, String, String) 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:
 void SetButtonText(System::String ^ button1Text, System::String ^ button2Text, System::String ^ button3Text, System::String ^ button4Text);
public void SetButtonText (string button1Text, string button2Text, string button3Text, string button4Text);
Public Sub SetButtonText (button1Text As String, button2Text As String, button3Text As String, button4Text As String)
Parameters
button1Text
String String String

Text for the first custom button.

button2Text
String String String

Text for the second custom button.

button3Text
String String String

Text for the third custom button.

button4Text
String String String

Text for the fourth custom button.

SetButtonText(String, String, String, String, String) SetButtonText(String, String, String, String, String) 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.

public:
 void SetButtonText(System::String ^ button1Text, System::String ^ button2Text, System::String ^ button3Text, System::String ^ button4Text, System::String ^ button5Text);
public void SetButtonText (string button1Text, string button2Text, string button3Text, string button4Text, string button5Text);
Public Sub SetButtonText (button1Text As String, button2Text As String, button3Text As String, button4Text As String, button5Text As String)
Parameters
button1Text
String String String

Text for the first custom button.

button2Text
String String String

Text for the second custom button.

button3Text
String String String

Text for the third custom button.

button4Text
String String String

Text for the fourth custom button.

button5Text
String String String

Text for the fifth custom button.

Applies to