Skip to main content
A newer version of this page is available.
All docs
V19.1
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

IMessageBoxService.ShowMessage(String, String, MessageBoxIcon) Method

Shows a dialog box to the user.

Namespace: DevExpress.XtraSpreadsheet.Services

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

Declaration

DialogResult ShowMessage(
    string message,
    string title,
    MessageBoxIcon icon
)

Parameters

Name Type Description
message String

A string to display in a dialog box.

title String

A string to display in a window caption.

icon MessageBoxIcon

A System.Windows.Forms.MessageBoxIcon value that specifies which icon to display in the message box.

Returns

Type Description
DialogResult

A DialogResult enumeration member that indicates the return value of a dialog box.

Remarks

The ShowMessage method is used frequently to inform the user or to display a warning.

Tip

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E5052.

See Also