The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.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.

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.1.Core.dll

Declaration

public interface IMessageBoxService
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