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