Table of Contents

Class MessageBoxHandler

Namespace
Alternet.Common
Assembly
Alternet.Common.Winforms.v10.dll

A utility class used to customize standard MessageBox.Show by handling MessageBoxShow event.

public class MessageBoxHandler
Inheritance
MessageBoxHandler

Constructors

MessageBoxHandler()

Methods

DisplayError(ErrorEventArgs)

Displays error in the message box dialog.

Init()

Initializes MessageBoxHandler.

OnError(ErrorEventArgs)
OnShowMessage(string, IWin32Window?, string?, MessageBoxButtons, MessageBoxIcon, Action<DialogResult>?)

Calls MessageBoxShow event if it is assigned.

Show(Window, string, string, MessageBoxButtons, MessageBoxIcon, Action<DialogResult>?)
Show(Window, string, string, Action<DialogResult>?)
Show(string)

Displays a message box with the specified message.

Show(string, Action<DialogResult>?)
Show(string, string)

Displays a message box with the specified message and caption.

Show(string, string, MessageBoxButtons, MessageBoxIcon, Action<DialogResult>?)
Show(string, string, MessageBoxButtons, Action<DialogResult>?)
Show(string, string, Action<DialogResult>?)
Show(string, string, MessageBoxButtons, Action<DialogResult>?)

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

Show(string, string, MessageBoxButtons, MessageBoxIcon)

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

Show(string, string, MessageBoxButtons, MessageBoxIcon, Action<DialogResult>?)

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

Show(IWin32Window, string, string)

Displays a message box with the specified message and caption.

Show(IWin32Window, string, string, MessageBoxButtons, MessageBoxIcon)

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

Show(IWin32Window, string, string, MessageBoxButtons, MessageBoxIcon, Action<DialogResult>?)

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

Events

MessageBoxShow

Occurs when the message box dialog is displayed.