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

Declaration

public interface IMessageBoxService

Remarks

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);
spreadsheetControl1.ReplaceService<DevExpress.XtraSpreadsheet.Services.IMessageBoxService>(svc);
See Also