Skip to content

Instantly share code, notes, and snippets.

@wtuts
Last active May 14, 2021 00:45
Show Gist options
  • Save wtuts/2725d155620c75414087 to your computer and use it in GitHub Desktop.
Save wtuts/2725d155620c75414087 to your computer and use it in GitHub Desktop.
Messagebox
//Store the Messagebox result in result variable
MessageBoxResult result = MessageBox.Show("Do you wish to continue?", "Options", MessageBoxButton.OKCancel);
//check if user clicked on ok
if (result == MessageBoxResult.OK)
{
//Add the task you wish to perform here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment