Table of Contents

Class MessageBox

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Displays a message window, also known as a dialog box, which presents a message to the user. It is a modal window, blocking other actions in the application until the user closes it. A MessageBox can contain text, buttons, and symbols that inform and instruct the user.

public static class MessageBox
Inheritance
MessageBox

Remarks

To display a message box, call the static method Show(Window?, object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton). The title, message, buttons, and icons displayed in the message box are determined by parameters that you pass to this method.

Methods

Show(Window?, object?)

Displays a message box in front of the specified object and with the specified text.

Show(Window?, object?, string?)

Displays a message box in front of the specified object and with the specified text and caption.

Show(Window?, object?, string?, MessageBoxButtons)

Displays a message box in front of the specified object and with the specified text, caption, and buttons.

Show(Window?, object?, string?, MessageBoxButtons, MessageBoxIcon)

Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon.

Show(Window?, object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton)

Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button.

Show(Window?, object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions)

Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options.

Show(Window?, object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string)

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.

Show(Window?, object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, HelpNavigator)

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and HelpNavigator.

Show(Window?, object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, HelpNavigator, object)

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file, HelpNavigator, and Help topic.

Show(Window?, object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, string)

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and Help keyword.

Show(object?)

Displays a message box with specified text.

Show(object?, string?)

Displays a message box with specified text and caption.

Show(object?, string?, MessageBoxButtons)

Displays a message box with specified text, caption, and buttons.

Show(object?, string?, MessageBoxButtons, MessageBoxDefaultButton)

Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button.

Show(object?, string?, MessageBoxButtons, MessageBoxIcon)

Displays a message box with specified text, caption, buttons, and icon.

Show(object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton)

Displays a message box with the specified text, caption, buttons, icon, and default button.

Show(object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions)

Displays a message box with the specified text, caption, buttons, icon, default button, and options.

Show(object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, bool)

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.

Show(object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string)

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file.

Show(object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, HelpNavigator)

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and HelpNavigator.

Show(object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, HelpNavigator, object)

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file, HelpNavigator, and Help topic.

Show(object?, string?, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, MessageBoxOptions, string, string)

Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file and Help keyword.

ShowDefault(MessageBoxInfo)

Default show message box handler.

Events

ShowDialog

Fired when message box is show.