Proper usage of the Asynchronous MessageBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | |
MessageBoxButtons.AbortRetryIgnore, | |
MessageBoxIcon.Exclamation); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment