Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to customize a message dialog displayed when runtime errors occur

$
0
0

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,  ShowMessageShowDataValidationDialog methods which are called in specific situations when the SpreadsheetControl needs user attention.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>