Skip to main content
.NET 6.0+

Messaging.Show(String, String, MessageBoxButtons, MessageBoxIcon) Method

Displays a message box.

Namespace: DevExpress.ExpressApp.Win.Core

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

NuGet Package: DevExpress.ExpressApp.Win

Declaration

public DialogResult Show(
    string message,
    string caption,
    MessageBoxButtons buttons,
    MessageBoxIcon icon
)

Parameters

Name Type Description
message String

A string, which is the text displayed within the message box.

caption String

A string, which is the message box caption.

buttons MessageBoxButtons

A MessageBoxButtons enumeration value, defining which buttons to display within the message box.

icon MessageBoxIcon

A MessageBoxIcon enumeration value, indicating which icon to display in the message box.

Returns

Type Description
DialogResult

A DialogResult enumeration value, which indicates the user choice made within the message box.

Remarks

This method uses the XtraMessageBox.Show method to display a message box. To change this behavior, override the protected ShowCore method in a custom Messaging descendant (see How to: Implement a Custom Messaging Class) topic. The Messaging.ConfirmationDialogClosed event is triggered within the Show method, after the message box is closed.

See Also