Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Messaging.ConfirmationDialogClosed Event

Occurs after the confirmation dialog is closed.

Namespace: DevExpress.ExpressApp.Win.Core

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

#Declaration

public static event EventHandler<ConfirmationDialogClosedEventArgs> ConfirmationDialogClosed

#Event Data

The ConfirmationDialogClosed event's data class is ConfirmationDialogClosedEventArgs. The following properties provide information specific to this event:

Property Description
DialogResult Gets the dialog box return value.

#Remarks

The ConfirmationDialogClosed event is raised when executing the Messaging.Show method. Handle this event to perform custom actions after the confirmation dialog is closed. Use the handler’s ConfirmationDialogClosedEventArgs.DialogResult parameter to get the user choice.

static class Program {
    static void Main() {
        // ...
        Messaging.ConfirmationDialogClosed += Messaging_ConfirmationDialogClosed;
        // ...
        winApplication.Setup();
        winApplication.Start();
        // ...
    }
    static void Messaging_ConfirmationDialogClosed(\
        object sender, ConfirmationDialogClosedEventArgs e) {
        // Place your code here. Use e.DialogResult value as required.
    }
}

For more sophisticated customizations, implement a custom Messaging descendant, as detailed in the How to: Implement a Custom Messaging Class.

See Also