ShowMessage(String,String,ButtonConfiguration) Method
Displays a message box with the specified text, caption, and button configuration (ie. Yes/No, Ok/Cancel, etc...)
Syntax
public static System.Windows.Forms.DialogResult ShowMessage(
System.string message,
System.string title,
ButtonConfiguration btnType
)Public Overloads Shared Function ShowMessage( _
ByVal message As System.String, _
ByVal title As System.String, _
ByVal btnType As ButtonConfiguration _
) As System.Windows.Forms.DialogResultParameters
| Name | Description |
|---|---|
| message | The text to display in the dialog box. |
| title | The caption of the dialog box. |
| btnType | The button selection that will be made available in the dialog box. |
Return Value
The windows DialogResult which describes the button that was selected. The following chart shows the possible return codes for each button. Button Return Code "Abort", "Skip All" DialogResult.Abort "Cancel" DialogResult.Cancel "No" DialogResult.No "OK" DialogResult.OK "Retry" DialogResult.Retry "Skip" DialogResult.Ignore "Yes" DialogResult.Yes