Messaging.Show(String, Exception) Method

Displays a message box.

Namespace: DevExpress.ExpressApp.Win.Core

Assembly: DevExpress.ExpressApp.Win.v18.2.dll


public virtual void Show(
    string caption,
    Exception exception
Public Overridable Sub Show(
    caption As String,
    exception As Exception


Type Name Description
String caption

A string, which is the exception dialog form caption.

Exception exception

A System.Exception object specifying an exception to be displayed.

Shows the message box with the "Error" caption, Exception.Message text and "OK" button, using the XtraMessageBox.Show method, and then triggers the Messaging.ConfirmationDialogClosed event, if the exception passed is user friendly (IUserFriendlyException). Otherwise, displays the exception dialog form via the ExceptionDialogForm.ShowMessage method, with caption passed via the caption parameter. You can override this method in a custom Messaging descendant.

See Also