

Use the Show static method of the MessageBox class.

There is a WinForms MessageBox class ( ), but there is no MessageBox control in PowerShell Studio Toolbox pane. Using a MessageBox to display user messages, instead of a custom form, helps to standardize your application and assure that it conforms to best practice design standards. Message boxes are typically used to display important information that the user must acknowledge, such as error messages. When the user clicks a modal window button, the modal window closes and control passes back to the parent window, which is re-enabled. When a modal window opens, the parent form is temporarily disabled, but still visible. MSDN Page: Ī modal window is a child of the parent form that opens on top of it. A MessageBox can contain text, buttons, and symbols that show information to the user and require their response.

The MessageBox closes only when the user clicks a MessageBox button. User Rating: 5 / 5 Please Rate MessageBox Control ĭisplays a modal window with a message for the user and at least one button.
