Jeffrey Snover of MSFT suggested the following (shorter) way of implementing yesterdays script:
[void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$myTitle = "Important Question"
$myText1 = "Is PowerShell useful to you ?"
$a = [Windows.Forms.MessageBox]::Show($myText1, $myTitle, "YesNoCancel", "Question")
$myText2 = "You answered: $a"
$a = [Windows.Forms.MessageBox]::Show($myText2, $myTitle, "Ok", "Information")
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment