This example demonstrates how to display a custom message in a custom manner instead of the default user warning dialog box.
Сreate a class that implements the IMessageBox service and register that class in place of the default service by using the SpreadsheetControl.ReplaceService method.
The IMessageBox service provides the ShowOkCancelMessage, ShowWarningMessage, ShowYesNoMessage, ShowMessage, ShowDataValidationDialog methods which are called in specific situations when the SpreadsheetControl needs user attention.
↧
How to customize a message dialog displayed when runtime errors occur
↧