.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
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.
.NET Core 3.0+

IMessageBoxService Interface

A service that enables you to display a custom message box when a runtime error occurs.

Namespace: DevExpress.XtraSpreadsheet.Services

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


public interface IMessageBoxService
Public Interface IMessageBoxService
public interface IMessageBoxService
Public Interface IMessageBoxService


You should create a class that implements the IMessageBoxService service and register that class in place of the default service by using the SpreadsheetControl.ReplaceService<T> method.

The following code snippets illustrate how to create a custom service and register it.

MyMessageBoxService svc = new MyMessageBoxService(spreadsheetControl1, spreadsheetControl1.LookAndFeel);
See Also