Skip to content

Instantly share code, notes, and snippets.

@timyhac
Last active June 15, 2016 05:18
Show Gist options
  • Save timyhac/fa4630811052eac14f8b87bd240cf5e8 to your computer and use it in GitHub Desktop.
Save timyhac/fa4630811052eac14f8b87bd240cf5e8 to your computer and use it in GitHub Desktop.
# No title
[System.Windows.Forms.MessageBox]::Show("We are proceeding with next step.")
# With title
[System.Windows.Forms.MessageBox]::Show("We are proceeding with next step." , "Status")
# Yes/No
$result = [System.Windows.Forms.MessageBox]::Show('Do you wish to continue', 'Warning', 'YesNo', 'Warning')
if ($result -eq 'Yes') {
# do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment