ShowError(Exception,String) Method
Displays an error dialog box which displays information about a specific exception.
Syntax
public static System.Windows.Forms.DialogResult ShowError(
System.Exception ex,
System.string title
)Public Overloads Shared Function ShowError( _
ByVal ex As System.Exception, _
ByVal title As System.String _
) As System.Windows.Forms.DialogResultParameters
| Name | Description |
|---|---|
| ex | The exception object to display information for. |
| title | The caption of the dialog box. |
Return Value
The windows DialogResult which describes the button that was selected. In this case, the result will always be DialogResult.OK
Remarks
The error dialog box will display the System Error Icon and have an OK button.
The Exception Parser Service will be used to determine the text of the error dialog.