MessageBox
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.
Methods
Show(text, caption, buttons, icon, defaultButton, modal, allowHtml, keepOnScreen, rightToLeft, onclose)
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
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
icon
defaultButton
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.
Returns: DialogResult. One of the DialogResult values.
Show(owner, text, caption, buttons, icon, defaultButton, modal, allowHtml, keepOnScreen, rightToLeft, onclose)
Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
owner
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
icon
defaultButton
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.
Returns: DialogResult. One of the DialogResult values.
ShowAsync(text, caption, buttons, icon, defaultButton, modal, allowHtml, keepOnScreen, rightToLeft)
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
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
icon
defaultButton
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.
Returns: Task<DialogResult>. One of the DialogResult values.
ShowAsync(owner, text, caption, buttons, icon, defaultButton, modal, allowHtml, keepOnScreen, rightToLeft)
Asynchronously displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.
owner
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
icon
defaultButton
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.
Returns: Task<DialogResult>. One of the DialogResult values.
Implements
All wisej components implement this interface.
Allows an object to serialize itself.
Last updated