Links

MessageBox

Displays a modal message box, also known as a dialog box, that can contain text, buttons, and symbols that inform and instruct the user.
You cannot create a new instance of the MessageBox class. To display a message box, call the static method MessageBox.Show. The title, message, buttons, and icons displayed in the message box are determined by parameters that you pass to this method.
For a full list of properties, methods and events see the API documentation.

Features

Styles

The MessageBox features several different alert styles.
  • None: No icon is shown in the message box.
  • Error: The message box contains an icon consisting of an X or an exclamation point typically on a red background to symbolize an error condition.
  • Stop: The message box contains an icon consisting of a stop sign.
  • Hand: The message box contains an icon consisting of a raised hand.
  • Question: The message box contains an icon consisting of a question mark in a circle.
  • Warning: The message box contains an icon consisting of an exclamation point in a triangle // to symbolize a warning sign.
  • Information: The message box contains an icon consisting of the letter i in a circle.

HTML

The MessageBox can show HTML in it's message by setting the allowHtml argument to true.
C#
MessageBox.Show(@"<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>", allowHtml: true);

Advanced

JavaScript Widget

Item
Description
Class name
"wisej.web.MessageBox"
Theme appearance
"messagebox", see Themes.
Source code
Last modified 9mo ago