Skip to content

Instantly share code, notes, and snippets.

Created May 1, 2020 20:01
What would you like to do?
Proper usage of the Asynchronous MessageBox
AsyncMessageBox.MessageBoxClosed += (o, e) =>
// handle the user response here
if(e.Result == DialogResult.Retry)
// retry code here
AsyncMessageBox.Show("There was an issue accessing 'quaterly report.xlsx'.",
"Quarterly Report Generator",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment