Wisej.Web.MessageBox
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Displays a message box that can contain text, buttons, and symbols that inform and instruct the user.
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Parameter | Type | Description |
---|---|---|
Returns: DialogResult. One of the DialogResult values.
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Returns: DialogResult. One of the DialogResult values.
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Returns: Task<DialogResult>. One of the DialogResult values.
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Returns: Task<DialogResult>. One of the DialogResult values.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
owner
An implementation of Form that owns the modal dialog box.
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any html.
caption
The text to display in the title bar of the message box.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the message box.
modal
Indicates whether the dialog box is modal and waits for the user response before resuming execution. When set to false, the return valid is always DialogResult.None. The default is true - modal.
allowHtml
Allows the message text to include HTML code.
keepOnScreen
Keeps the message box in the viewable area when being moved by the user. The default is false.
rightToLeft
Indicates whether the dialog box should display it's content right aligned.
onclose
Optional async handler for the close event; called when the MessageBox has been closed.
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any html.
caption
The text to display in the title bar of the message box.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the message box.
modal
Indicates whether the dialog box is modal and waits for the user response before resuming execution. When set to false, the return valid is always DialogResult.None. The default is true - modal.
allowHtml
Allows the message text to include HTML code.
keepOnScreen
Keeps the message box in the viewable area when being moved by the user. The default is false.
rightToLeft
Indicates whether the dialog box should display it's content right aligned.
owner
An implementation of Form that owns the modal dialog box.
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any html.
caption
The text to display in the title bar of the message box.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the message box.
modal
Indicates whether the dialog box is modal and waits for the user response before resuming execution. When set to false, the return valid is always DialogResult.None. The default is true - modal.
allowHtml
Allows the message text to include HTML code.
keepOnScreen
Keeps the message box in the viewable area when being moved by the user. The default is false.
rightToLeft
Indicates whether the dialog box should display it's content right aligned.
All wisej components implement this interface.
Allows an object to serialize itself.
text
The text to display in the message box. Newlines (CRLF) are converted to when the text doesn't contain any html.
caption
The text to display in the title bar of the message box.
buttons
One of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
defaultButton
One of the MessageBoxDefaultButton values that specifies the default button for the message box.
modal
Indicates whether the message box is modal and waits for the user response before resuming execution. When set to false, the return valid is always DialogResult.None. The default is true - modal.
allowHtml
Allows the message text to include HTML code.
keepOnScreen
Keeps the message box in the viewable area when being moved by the user. The default is false.
rightToLeft
Indicates whether the dialog box should display it's content right aligned.
onclose
Optional async handler for the close event; called when the MessageBox has been closed.
Wisej.Web.MessageBoxDefaultButton
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Specifies constants defining the default button on a MessageBox.
Name | Description |
---|---|
Name | Description |
---|---|
Wisej.Web.MessageBoxIcon
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Specifies the type of icon to display in the MessageBox or AlertBox.
Name | Description |
---|---|
Name | Description |
---|---|
Wisej.Web.MessageBoxButtons
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Specifies constants defining which buttons to display on a MessageBox.
Name | Description |
---|---|
Name | Description |
---|---|
Button1
The first button on the message box is the default button.
Button2
The second button on the message box is the default button.
Button3
The third button on the message box is the default button.
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
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.
Hand
The message box contains an icon consisting of a raised hand.
Information
The message box contains an icon consisting of the letter i in a circle
None
No icon is shown in the message box.
Question
The message box contains an icon consisting of a question mark in a circle.
Stop
The message box contains an icon consisting of a stop sign.
Warning
The message box contains an icon consisting of an exclamation point in a triangle to symbolize a warning sign.
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Displays an alert box with the specified text and icon in the specified position.
Plays one of the built-in sounds
AbortRetryIgnore
The message box contains Abort, Retry, and Ignore buttons.
Cancel
The message box contains a Cancel button.
No
The message box contains a No button.
OK
The message box contains an OK button.
OKCancel
The message box contains OK and Cancel buttons.
RetryCancel
The message box contains Retry and Cancel buttons.
Yes
The message box contains a Yes button.
YesNo
The message box contains Yes and No buttons.
YesNoCancel
The message box contains Yes, No, and Cancel buttons.
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.