Skip to main content
.NET 6.0+

WinApplication.HandleException(Exception) Method

Shows the message box with details on the specified exception.

Namespace: DevExpress.ExpressApp.Win

Assembly: DevExpress.ExpressApp.Win.v23.2.dll

NuGet Package: DevExpress.ExpressApp.Win


public void HandleException(
    Exception e


Name Type Description
e Exception

A System.Exception object representing an exception that occurred.


Triggers the WinApplication.CustomHandleException event. If the event’s Handled parameter is not set to true, the message box is displayed via the Messaging.Show method (an overload that takes the caption and exception parameters is used).

The HandleException method is called each time an exception occurs when running a Windows Forms application (see the snippet from the Program.Main method below).

static void Main() {
    // ...
   try {
    catch (Exception e) {

The following code snippets (auto-collected from DevExpress Examples) contain references to the HandleException(Exception) method.


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.

See Also