A newer version of this page is available. Switch to the current version.

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.v18.2.Core.dll


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