Message
Let's start with the simplest example; the standard message box:
Show-AnyBox -Title 'AnyBox Demo' -Message 'Hello world' -Buttons 'Hi' -MinWidth 300
The -Message
parameter accepts an array of strings to print, each separated by a new line.
Show-AnyBox -Icon 'Question' -Title 'AnyBox Demo' -Message 'Hello world', 'Are you ready?' -Buttons 'No', 'Yes' -MinWidth 300
Similar to -Message
is -Comment
, which will include a text block in italics near the bottom of the AnyBox.
Show-AnyBox -Message 'Provide your name:' -Prompt '' -Comment 'First name only' -Buttons 'OK'