Created
May 23, 2015 13:52
-
-
Save rufflabs/982cb4dc852ac1724033 to your computer and use it in GitHub Desktop.
Displays an informational dialog popup
This file contains hidden or 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
function Show-DialogMessage($message = 'Default message') | |
{ | |
$null = [Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms'); | |
$answer = [System.Windows.Forms.MessageBox]::Show($message, 'Informational Message',[Windows.Forms.MessageBoxButtons]::OK,[Windows.Forms.MessageBoxIcon]::Information); | |
return [String]$answer | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment