Skip to main content
All docs
V25.1
  • IMessageBoxService.ShowMessage(String, String, PortableMessageBoxIcon) Method

    Displays a message box with the specified message, title bar caption, and icon.

    Namespace: DevExpress.XtraSpreadsheet.Services

    Assembly: DevExpress.Spreadsheet.v25.1.Core.dll

    NuGet Package: DevExpress.Spreadsheet.Core

    Declaration

    PortableDialogResult ShowMessage(
        string message,
        string title,
        PortableMessageBoxIcon icon
    )

    Parameters

    Name Type Description
    message String

    The text to display in the message box.

    title String

    The text to display in the message box’s title bar.

    icon DevExpress.Portable.PortableMessageBoxIcon

    The equivalent of the System.Windows.Forms.MessageBoxIcon enumeration. Specifies an icon to display in the message box.

    Returns

    Type Description
    DevExpress.Portable.PortableDialogResult

    The equivalent of the System.Windows.Forms.DialogResult enumeration. Indicates the return value of the message box.

    See Also