A service that enables you to display a custom message box when a runtime error occurs.
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.
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-customize-a-message-dialog-displayed-when-runtime-errors-occur-e5052
MyMessageBoxService svc = new MyMessageBoxService(spreadsheetControl1, spreadsheetControl1.LookAndFeel); spreadsheetControl1.ReplaceService<DevExpress.XtraSpreadsheet.Services.IMessageBoxService>(svc);
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the IMessageBoxService interface.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.